Class VideoComponent
Component representing a video.
[Display("Video", null, Expand = ExpandRule.Once)]
[DataContract("VideoComponent")]
[DefaultEntityComponentProcessor(typeof(VideoProcessor), ExecutionMode = ExecutionMode.Runtime)]
[ComponentOrder(8000)]
[ComponentCategory("Video")]
public class VideoComponent : EntityComponent, IIdentifiable
- Inheritance
-
VideoComponent
- Implements
- Inherited Members
Remarks
Associate this component to an entity to render a video into a texture.
Properties
AudioEmitters
The list of audioEmitteur components.
[DataMember(60)]
public FastCollection<AudioEmitterComponent> AudioEmitters { get; }
Property Value
Instance
public VideoInstance Instance { get; }
Property Value
LoopVideo
If activated, the video will automatically restart when reaching the end
[DataMember(30)]
public bool LoopVideo { get; set; }
Property Value
MaxMipMapCount
Defines the maximum number of mip maps that will be generated for the video texture.
[DataMember(40)]
public int MaxMipMapCount { get; set; }
Property Value
PlayAudio
If activated, the video's audio track will be played
[DataMember(50)]
public bool PlayAudio { get; set; }
Property Value
Source
The source video.
[DataMember(10)]
public Video Source { get; set; }
Property Value
Target
The target texture where frames from the video will be rendered.
[DataMember(20)]
public Texture Target { get; set; }