TRTCPublishMode enum
The Publishing Mode
This enum type is used by the publishing API startPublishMediaStream
.
TRTC can mix multiple streams in a room and publish the mixed stream to a CDN or to a TRTC room. It can also publish the stream of the local user to Tencent Cloud or a third-party CDN.
Constructors
- TRTCPublishMode()
-
const
Values
- unknown → const TRTCPublishMode
-
- Undefined
- bigStreamToCdn → const TRTCPublishMode
-
- Use this parameter to publish the primary stream (TRTCVideoStreamType.big) in the room to Tencent Cloud or a third-party CDN (only RTMP is supported).
- subStreamToCdn → const TRTCPublishMode
-
- Use this parameter to publish the sub-stream (TRTCVideoStreamType.sub) in the room to Tencent Cloud or a third-party CDN (only RTMP is supported).
- mixStreamToCdn → const TRTCPublishMode
-
- Use this parameter together with the encoding parameter TRTCStreamEncoderParam and On-Cloud MixTranscoding parameter TRTCStreamMixingConfig to transcode the streams you specify and publish the mixed stream to Tencent Cloud or a third-party CDN (only RTMP is supported).
- mixStreamToRoom → const TRTCPublishMode
-
- Use this parameter together with the encoding parameter TRTCStreamEncoderParam and
On-Cloud MixTranscoding parameter TRTCStreamMixingConfig to transcode the streams you specify and
publish the mixed stream to the room you specify.
- Use TRTCUser in TRTCPublishTarget to specify the robot that publishes the transcoded stream to a TRTC room.
- Use this parameter together with the encoding parameter TRTCStreamEncoderParam and
On-Cloud MixTranscoding parameter TRTCStreamMixingConfig to transcode the streams you specify and
publish the mixed stream to the room you specify.
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<
TRTCPublishMode> - A constant List of the values in this enum, in order of their declaration.