TRTCPublishMode enum

媒体流发布模式,该枚举类型用于媒体流发布接口 TRTCCloud.startPublishMediaStream

TRTC 的媒体流发布服务能够将房间中的多路音视频流混合成一路发布至 CDN 或者回推到房间内, 也可以将您当前的这路音视频发布到腾讯或者第三方 CDN 因此您需要指定对应媒体流的发布模式。

Inheritance

Constructors

TRTCPublishMode()
const

Values

TRTCPublishModeUnknown → const TRTCPublishMode

未定义

TRTCPublishBigStreamToCdn → const TRTCPublishMode

使用此参数将房间中的主流(TRTCVideoStreamTypeBig)发布到腾讯云或第三方 CDN(仅支持 RTMP)。

TRTCPublishSubStreamToCdn → const TRTCPublishMode

使用此参数将房间中的辅流(TRTCVideoStreamTypeSub)发布到腾讯云或第三方 CDN(仅支持 RTMP)。

TRTCPublishMixStreamToCdn → const TRTCPublishMode

使用此参数结合编码参数 TRTCStreamEncoderParam 和云端混流参数 TRTCStreamMixingConfig,将您指定的流进行转码,并将混合流发布到腾讯云或第三方 CDN(仅支持 RTMP)。

TRTCPublishMixStreamToRoom → const TRTCPublishMode

使用此参数结合编码参数 TRTCStreamEncoderParam 和云端混流参数 TRTCStreamMixingConfig,将您指定的流进行转码,并将混合流发布到您指定的房间。

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<TRTCPublishMode>
A constant List of the values in this enum, in order of their declaration.
[TRTCPublishModeUnknown, TRTCPublishBigStreamToCdn, TRTCPublishSubStreamToCdn, TRTCPublishMixStreamToCdn, TRTCPublishMixStreamToRoom]