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"})