Method CaptureStreamTrack
CaptureStreamTrack(Camera, int, int, RenderTextureDepth, CopyTexture)
Create an instance of VideoStreamTrack to stream a camera.
Declaration
public static VideoStreamTrack CaptureStreamTrack(this Camera cam, int width, int height, RenderTextureDepth depth = RenderTextureDepth.Depth24, CopyTexture textureCopy = null)
Parameters
Type | Name | Description |
---|---|---|
Camera | cam | |
int | width | |
int | height | |
RenderTextureDepth | depth | |
CopyTexture | textureCopy |
Returns
Type | Description |
---|---|
VideoStreamTrack |
Remarks
You should keep a reference of VideoStreamTrack, created by this method. This instance is collected by GC automatically if you don't own a reference.