Class VideoStreamTrack
Inheritance
VideoStreamTrack
Syntax
public class VideoStreamTrack : MediaStreamTrack, IDisposable
Constructors
Creates a new VideoStream object.
The track is created with a source texture ptr
.
It is noted that streamed video might be flipped when not action was taken. Almost case it has no problem to use other constructor instead.
See Also: Texture.GetNativeTexturePtr
Declaration
public VideoStreamTrack(string label, IntPtr texturePtr, int width, int height, GraphicsFormat format)
Parameters
VideoStreamTrack(String, RenderTexture)
Creates a new VideoStream object.
The track is created with a source
.
Declaration
public VideoStreamTrack(string label, RenderTexture source)
Parameters
VideoStreamTrack(String, Texture)
Declaration
public VideoStreamTrack(string label, Texture source)
Parameters
Properties
IsDecoderInitialized
Declaration
public bool IsDecoderInitialized { get; }
Property Value
IsEncoderInitialized
note:
The videotrack cannot be used if the encoder has not been initialized.
Do not use it until the initialization is complete.
Declaration
public bool IsEncoderInitialized { get; }
Property Value
Methods
Dispose()
Declaration
public override void Dispose()
Overrides
InitializeReceiver(Int32, Int32)
Declaration
public Texture InitializeReceiver(int width, int height)
Parameters
Returns