Class RtcVideoSource
- Namespace
- LiveKit
public abstract class RtcVideoSource : IRtcSource, IDisposable
- Inheritance
-
RtcVideoSource
- Implements
- Derived
- Inherited Members
- Extension Methods
Fields
_bufferType
protected VideoBufferType _bufferType
Field Value
_captureBuffer
protected NativeArray<byte> _captureBuffer
Field Value
- NativeArray<byte>
_disposed
protected bool _disposed
Field Value
_info
protected VideoSourceInfo _info
Field Value
_playing
protected bool _playing
Field Value
_previewTexture
protected Texture2D _previewTexture
Field Value
- Texture2D
_reading
protected bool _reading
Field Value
_requestPending
protected bool _requestPending
Field Value
_sourceType
protected RtcVideoSource.VideoStreamSource _sourceType
Field Value
Properties
Muted
public override bool Muted { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Dispose(bool)
protected virtual void Dispose(bool disposing)
Parameters
disposingbool
~RtcVideoSource()
protected ~RtcVideoSource()
GetHeight()
public abstract int GetHeight()
Returns
GetStrideForBuffer(VideoBufferType)
protected int GetStrideForBuffer(VideoBufferType type)
Parameters
typeVideoBufferType
Returns
GetTextureFormat(VideoBufferType)
protected TextureFormat GetTextureFormat(VideoBufferType type)
Parameters
typeVideoBufferType
Returns
- TextureFormat
GetVideoBufferType(TextureFormat)
protected VideoBufferType GetVideoBufferType(TextureFormat type)
Parameters
typeTextureFormat
Returns
GetVideoRotation()
protected abstract VideoRotation GetVideoRotation()
Returns
GetWidth()
public abstract int GetWidth()
Returns
Init()
protected void Init()
OnReadback(AsyncGPUReadbackRequest)
protected void OnReadback(AsyncGPUReadbackRequest req)
Parameters
reqAsyncGPUReadbackRequest
ReadBuffer()
protected abstract bool ReadBuffer()
Returns
SendFrame()
protected virtual bool SendFrame()
Returns
SetMute(bool)
public override void SetMute(bool muted)
Parameters
mutedbool
Start()
public virtual void Start()
Stop()
public virtual void Stop()
Update()
public IEnumerator Update()
Returns
Events
TextureReceived
public event RtcVideoSource.TextureReceiveDelegate TextureReceived