Class VideoStreamTrack
Inheritance
VideoStreamTrack
Syntax
public class VideoStreamTrack : MediaStreamTrack, IDisposable
Constructors
VideoStreamTrack(Texture, CopyTexture)
Video Sender
Creates a new VideoStream object.
The track is created with a source
.
Declaration
public VideoStreamTrack(Texture texture, CopyTexture copyTexture = null)
Parameters
Type |
Name |
Description |
Texture |
texture |
|
CopyTexture |
copyTexture |
By default, textures are copied vertically flipped, using CopyTextureHelper.VerticalFlipCopy,
use Graphics.Blit for copy as is, CopyTextureHelper for flip,
or write your own CopyTexture function
|
Exceptions
Properties
DataPtr
Declaration
public IntPtr DataPtr { get; }
Property Value
Decoding
Declaration
public bool Decoding { get; }
Property Value
Encoding
Declaration
public bool Encoding { get; }
Property Value
NeedReceivedVideoFlipVertically
Flip vertically received video, change it befor start receive video
Declaration
public static bool NeedReceivedVideoFlipVertically { get; set; }
Property Value
Texture
encoded / decoded texture
Declaration
public Texture Texture { get; }
Property Value
TexturePtr
encoded / decoded texture ptr
Declaration
public IntPtr TexturePtr { get; }
Property Value
Methods
Dispose()
Declaration
public override void Dispose()
Overrides
Events
OnVideoReceived
Declaration
public event OnVideoReceived OnVideoReceived
Event Type