mode property
getter/setter pair
- 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
.
Implementation
TRTCPublishMode mode;