Class VideoStreamSender
Inheritance
VideoStreamSender
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)
Syntax
[AddComponentMenu("Render Streaming/Video Stream Sender")]
public class VideoStreamSender : StreamSenderBase, IStreamSender
Properties
autoRequestUserAuthorization
Declaration
public bool autoRequestUserAuthorization { get; set; }
Property Value
codec
Declaration
public VideoCodecInfo codec { get; }
Property Value
frameRate
Declaration
public float frameRate { get; }
Property Value
height
Declaration
public uint height { get; set; }
Property Value
maxBitrate
Declaration
public uint maxBitrate { get; }
Property Value
minBitrate
Declaration
public uint minBitrate { get; }
Property Value
scaleResolutionDown
Declaration
public float scaleResolutionDown { get; }
Property Value
source
Declaration
public VideoStreamSource source { get; set; }
Property Value
sourceCamera
Declaration
public Camera sourceCamera { get; set; }
Property Value
sourceDeviceIndex
The index of WebCamTexture.devices.
Declaration
public int sourceDeviceIndex { get; set; }
Property Value
sourceTexture
Declaration
public Texture sourceTexture { get; set; }
Property Value
sourceWebCamTexture
Declaration
public WebCamTexture sourceWebCamTexture { get; }
Property Value
width
Declaration
public uint width { get; set; }
Property Value
Methods
GetAvailableCodecs()
Declaration
public static IEnumerable<VideoCodecInfo> GetAvailableCodecs()
Returns
SetBitrate(UInt32, UInt32)
Declaration
public void SetBitrate(uint minBitrate, uint maxBitrate)
Parameters
SetCodec(VideoCodecInfo)
Declaration
public void SetCodec(VideoCodecInfo codec)
Parameters
SetFrameRate(Single)
Declaration
public void SetFrameRate(float frameRate)
Parameters
Type |
Name |
Description |
Single |
frameRate |
|
SetScaleResolutionDown(Single)
Declaration
public void SetScaleResolutionDown(float scaleFactor)
Parameters
Type |
Name |
Description |
Single |
scaleFactor |
The parameter must be greater than 1.0f.
|
SetTextureSize(Vector2Int)
Declaration
public void SetTextureSize(Vector2Int size)
Parameters