TRTCPublishMode enum
Media stream publishing mode, this enumeration type is used for the Media Stream Publishing interface TRTCCloud.startPublishMediaStream.
TRTC's Media Stream Publishing service can publish multiple audio and video streams from a room to a CDN or push them back into the room. It can also publish your current stream to Tencent or a third-party CDN, so you'll need to specify the publishing mode for that stream.
Values
- TRTCPublishModeUnknown → const TRTCPublishMode
-
Undefined
- TRTCPublishBigStreamToCdn → const TRTCPublishMode
-
Use this parameter to publish the primary stream (TRTCVideoStreamTypeBig) in the room to Tencent Cloud or a third-party CDN (only RTMP is supported).
- TRTCPublishSubStreamToCdn → const TRTCPublishMode
-
Use this parameter to publish the substream (TRTCVideoStreamTypeSub) in the room to Tencent Cloud or a third-party CDN (only RTMP is supported).
- TRTCPublishMixStreamToCdn → 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).
- TRTCPublishMixStreamToRoom → 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.
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.