addLiveStreamingEndpoints()
addLiveStreamingEndpoints()
addLiveStreamingEndpoints({ endpoints: Array })
Adds additional RTMP endpoints to a call with an existing live stream. This method should be used after calling startLiveStreaming()
.
This method cannot be used to add an RTMP URL to an existing stream after using the endpoints
parameter in a call to startLiveStreaming()
.
await call.addLiveStreamingEndpoints({endpoints: [{ endpoint: 'rtmp://localhost:1935/live/stream2' },{ endpoint: 'rtmp://localhost:1935/live/stream3' },{ endpoint: 'rtmp://localhost:1935/live/stream4' },],});