TRTCPublishTarget class
The publishing destination
Constructors
-
TRTCPublishTarget({TRTCPublishMode mode = TRTCPublishMode.unknown, List<
TRTCPublishCdnUrl> ? cdnUrlList, TRTCUser? mixStreamIdentity})
Properties
-
cdnUrlList
↔ List<
TRTCPublishCdnUrl> -
- Description: The destination URLs (RTMP) when you publish to Tencent Cloud or third-party CDNs.
- Note: You don’t need to set this parameter if you set the publishing mode to
TRTCPublishMixStreamToRoom
.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- mixStreamIdentity ↔ TRTCUser
-
- Description: The information of the robot that publishes the transcoded stream to a TRTC room.
- Note:
- You need to set this parameter only if you set the publishing mode to
TRTCPublishMixStreamToRoom
. - After you set this parameter, the stream will be pushed to the room you specify. We recommend you set it to a special user ID to distinguish the robot from the anchor who enters the room via the TRTC SDK.
- Users whose streams are transcoded cannot subscribe to the transcoded stream.
- If you set the subscription mode to manual before room entry, you need to manage the streams to receive by yourself (normally, if you receive the transcoded stream, you need to unsubscribe from the streams that are transcoded).
- If you set the subscription mode to auto before room entry, users whose streams are not transcoded will receive the transcoded stream automatically and
will unsubscribe from the users whose streams are transcoded. You call
muteRemoteVideoStream
andmuteRemoteAudio
to unsubscribe from the transcoded stream.
getter/setter pair - mode ↔ TRTCPublishMode
-
- Description: The publishing mode.
- Value: You can relay streams to a CDN, transcode streams, or publish streams to an RTC room. Select the mode that fits your needs.
- Note: If you need to use more than one publishing mode, you can call
startPublishMediaStream
multiple times and setTRTCPublishTarget
to a different value each time. You can use one mode each time you call thestartPublishMediaStream
API. To modify the configuration, callupdatePublishCDNStream
.getter/setter pair - 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