logo
On this page

How does a mini program push directly to CDN?

2022-11-15
Products / Plugins:Video Call / Audio Call
Platform / Framework:Mini Program

Call the startPublishingStream method and set the parameter "sourceType" in "publishOption" to "CDN" to get the CDN publish stream address, then use that address to push the stream.

const { url } = await zg.startPublishingStream(data.pushStreamID,{sourceType:"CDN"})

Previous

How to set mirror for preview and stream playing on the Web platform?

Next

Why does the client online authentication fail when accessing the ZegoEffects service through the URL address?