Delegate OnVideoReceived
Delegate to be called when the first frame of the video is received.
Namespace: Unity.WebRTC
Assembly: Unity.WebRTC.dll
Syntax
public delegate void OnVideoReceived(Texture renderer)
Parameters
Type | Name | Description |
---|---|---|
Texture | renderer |
|
Remarks
OnVideoReceived
delegate is called when the first frame of the video is received.
Examples
[SerializeField]
RawImage receivedImage;
videoStreamTrack.OnVideoReceived += (texture) =>
{
receivedImage.texture = texture;
}