could someone help me with a basic example. I am trying to understand the transport.consume() api
according to the docs https://mediasoup.org/documentation/v3/mediasoup/rtp-parameters-and-capabilities/#RtpCapabilities these should be passed with a create broadcaster request, but I can’t find an example of what the format should be.
following the link https://mediasoup.org/documentation/v3/mediasoup/rtp-parameters-and-capabilities/#RtpCodecCapability I am assuming I need an array that reflects
codecs: {
{ channels: 2
clockRate: 48000
kind: "audio"
mimeType: "audio/opus"
},
{ clockRate: 90000,
kind: "video",
mimeType: "video/VP8",
parameters: {
x-google-start-bitrate: 1000 },
preferredPayloadType: 101,
rtcpFeedback: {
{type: "nack", parameter: ""},
{type: "nack", parameter: "pli"},
{type: "ccm", parameter: "fir"},
{type: "goog-remb", parameter: ""},
{type: "transport-cc", parameter: ""} }
}
}
headerExtensions: {...} //etc
I am trying to get a gstreamer app as a consumer for the gstreamer demo producer.
Can someone provide a basic example of how you format such an array.