Publishing with WebRTC to the Transcoder
If you do not wish send multiple streams via a Media Encoder, you can publish a single high-quality stream to the an autoscale Transcoder node which will handle transcoding the stream into the additional variants.
Once the Provision is posted and stored on the Stream Manager, you will need to start a publisher using the details of the highest variant.
As an example, if you provision ladder specified 720p as the highest variant, you would setup your WHIPClient to start publishing on the proxy to be transcoded as such:
const publisher = new WHIPClient();
await publisher.init({
endpoint: `https://myred5.cloud.red5.net/as/v1/proxy/whip/live/mystream`,
connectionParams: {
nodeGroup: "my-node-group",
transcode: true,
},
streamName: "mystream",
mediaConstraints: {
audio: true,
video: {
width: {
exact: 1280,
},
height: {
exact: 720,
},
frameRate: {
ideal: 60,
},
},
},
bandwidth: {
audio: 128,
video: 2000,
},
});
await publisher.publish();