Constructor VideoStreamTrack
VideoStreamTrack(string, RenderTexture)
Creates a new VideoStream object.
The track is created with a source.
Declaration
public VideoStreamTrack(string label, RenderTexture source)
Parameters
| Type | Name | Description |
|---|---|---|
| string | label | |
| RenderTexture | source |
VideoStreamTrack(string, Texture)
Declaration
public VideoStreamTrack(string label, Texture source)
Parameters
| Type | Name | Description |
|---|---|---|
| string | label | |
| Texture | source |
VideoStreamTrack(string, IntPtr, int, int, GraphicsFormat)
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 ptr, int width, int height, GraphicsFormat format)
Parameters
| Type | Name | Description |
|---|---|---|
| string | label | |
| IntPtr | ptr | |
| int | width | |
| int | height | |
| GraphicsFormat | format |