RTCViewContext class
@brief Used for RTCSurfaceView initialization
Constructors
- RTCViewContext.echoTestContext()
- 设置渲染通话前回路测试视频流的画布 deprecate.
- RTCViewContext.localContext({required String userId, StreamIndex streamIndex = StreamIndex.main, VideoRotation videoRotation = VideoRotation.rotation0})
- Set the canvas for rendering local video
- RTCViewContext.publicStreamContext(String publicStreamId)
- Set the canvas for rendering WTN public stream video
- RTCViewContext.remoteContext({required String roomId, required String userId, StreamIndex streamIndex = StreamIndex.main, VideoRotation videoRotation = VideoRotation.rotation0, String? streamId = ''})
- Set the canvas for rendering remote video
Properties
- canvasType → VideoCanvasType
-
@brief Canvas type
final
- hasAudio ↔ bool
-
@brief Has audio
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasVideo ↔ bool
-
@brief Has video
getter/setter pair
- publicStreamId ↔ String?
-
@brief Public stream ID
getter/setter pair
- roomId → String
-
@brief Room ID of the user to be rendered
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- streamId ↔ String?
-
@brief Stream ID
getter/setter pair
- streamIndex → StreamIndex
-
@brief Stream index
final
- userId → String
-
@brief User ID to be rendered
final
- videoRotation → VideoRotation
-
@brief Video rotation angle
final
- viewId ↔ String?
-
@brief View ID
getter/setter pair
- viewType ↔ String
-
@brief View type
getter/setter pair
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