Table of Contents

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

VideoBufferType

_captureBuffer

protected NativeArray<byte> _captureBuffer

Field Value

NativeArray<byte>

_disposed

protected bool _disposed

Field Value

bool

_info

protected VideoSourceInfo _info

Field Value

VideoSourceInfo

_playing

protected bool _playing

Field Value

bool

_previewTexture

protected Texture2D _previewTexture

Field Value

Texture2D

_reading

protected bool _reading

Field Value

bool

_requestPending

protected bool _requestPending

Field Value

bool

_sourceType

protected RtcVideoSource.VideoStreamSource _sourceType

Field Value

RtcVideoSource.VideoStreamSource

Properties

Muted

public override bool Muted { get; }

Property Value

bool

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

disposing bool

~RtcVideoSource()

protected ~RtcVideoSource()

GetHeight()

public abstract int GetHeight()

Returns

int

GetStrideForBuffer(VideoBufferType)

protected int GetStrideForBuffer(VideoBufferType type)

Parameters

type VideoBufferType

Returns

int

GetTextureFormat(VideoBufferType)

protected TextureFormat GetTextureFormat(VideoBufferType type)

Parameters

type VideoBufferType

Returns

TextureFormat

GetVideoBufferType(TextureFormat)

protected VideoBufferType GetVideoBufferType(TextureFormat type)

Parameters

type TextureFormat

Returns

VideoBufferType

GetVideoRotation()

protected abstract VideoRotation GetVideoRotation()

Returns

VideoRotation

GetWidth()

public abstract int GetWidth()

Returns

int

Init()

protected void Init()

OnReadback(AsyncGPUReadbackRequest)

protected void OnReadback(AsyncGPUReadbackRequest req)

Parameters

req AsyncGPUReadbackRequest

ReadBuffer()

protected abstract bool ReadBuffer()

Returns

bool

SendFrame()

protected virtual bool SendFrame()

Returns

bool

SetMute(bool)

public override void SetMute(bool muted)

Parameters

muted bool

Start()

public virtual void Start()

Stop()

public virtual void Stop()

Update()

public IEnumerator Update()

Returns

IEnumerator

Events

TextureReceived

public event RtcVideoSource.TextureReceiveDelegate TextureReceived

Event Type

RtcVideoSource.TextureReceiveDelegate