TRTCVideoBufferType enum

Video Data Transfer Method

For custom capturing and rendering features, you need to use the following enumerated values to specify the method of transferring video data:

  • Method 1: This method uses a memory buffer to transfer video data. It is efficient on iOS but inefficient on Android. It is the only method currently supported on Windows.

  • Method 2: This method uses texture to transfer video data. It is efficient on both iOS and Android but is not supported on Windows. To use this method, you should have a general familiarity with OpenGL programming.

Inheritance
Annotations
  • @JsonEnum(alwaysCreate: true)

Constructors

TRTCVideoBufferType()
const

Values

unknown → const TRTCVideoBufferType
  • Undefined transfer method
buffer → const TRTCVideoBufferType
  • Use memory buffer to transfer video data. iOS: PixelBuffer ; Android: Direct Buffer for JNI layer; Windows: memory data block.
texture → const TRTCVideoBufferType
  • Use OpenGL texture to transfer video data
textureD3D11 → const TRTCVideoBufferType
  • Use D3D11 texture to transfer video data

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<TRTCVideoBufferType>
A constant List of the values in this enum, in order of their declaration.