Class VideoStreamReceiver
Inherited Members
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
UnityEngine.Object.FindFirstObjectByType<T>()
UnityEngine.Object.FindAnyObjectByType<T>()
UnityEngine.Object.FindFirstObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType<T>(UnityEngine.FindObjectsInactive)
Namespace: Unity.RenderStreaming
Syntax
[AddComponentMenu("Render Streaming/Video Stream Receiver")]
public class VideoStreamReceiver : StreamReceiverBase, IStreamReceiver
Fields
OnUpdateReceiveTexture
Declaration
public VideoStreamReceiver.OnUpdateReceiveTextureHandler OnUpdateReceiveTexture
Field Value
Type | Description |
---|---|
VideoStreamReceiver.OnUpdateReceiveTextureHandler |
Properties
codec
Declaration
public VideoCodecInfo codec { get; }
Property Value
Type | Description |
---|---|
VideoCodecInfo |
height
Declaration
public int height { get; }
Property Value
Type | Description |
---|---|
Int32 |
targetTexture
Declaration
public RenderTexture targetTexture { get; set; }
Property Value
Type | Description |
---|---|
RenderTexture |
texture
Declaration
public Texture texture { get; }
Property Value
Type | Description |
---|---|
Texture |
width
Declaration
public int width { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
GetAvailableCodecs()
Declaration
public static IEnumerable<VideoCodecInfo> GetAvailableCodecs()
Returns
Type | Description |
---|---|
IEnumerable<VideoCodecInfo> |
SetCodec(VideoCodecInfo)
Declaration
public void SetCodec(VideoCodecInfo codec)
Parameters
Type | Name | Description |
---|---|---|
VideoCodecInfo | codec |