Table of Contents

Class VideoComponent

Namespace
Stride.Video
Assembly
Stride.Video.dll

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

FastCollection<AudioEmitterComponent>

Instance

public VideoInstance Instance { get; }

Property Value

VideoInstance

LoopVideo

If activated, the video will automatically restart when reaching the end

[DataMember(30)]
public bool LoopVideo { get; set; }

Property Value

bool

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

int

PlayAudio

If activated, the video's audio track will be played

[DataMember(50)]
public bool PlayAudio { get; set; }

Property Value

bool

Source

The source video.

[DataMember(10)]
public Video Source { get; set; }

Property Value

Video

Target

The target texture where frames from the video will be rendered.

[DataMember(20)]
public Texture Target { get; set; }

Property Value

Texture