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.
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
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.