I need some pointers with the producerId when creating a consume.
https://mediasoup.org/documentation/v3/mediasoup/api/#transport-consume
take for example the code to create a video track producer
echo ">>> creating mediasoup video Producer..."
res=$(${HTTPIE_COMMAND} \
POST ${SERVER_URL}/rooms/${ROOM_ID}/broadcasters/${BROADCASTER_ID}/transports/${videoTransportId}/producers \
kind="video" \
rtpParameters:="{ \"codecs\": [{ \"mimeType\":\"video/vp8\", \"payloadType\":${VIDEO_PT}, \"clockRate\":90000 }], \"encodings\": [{ \"ssrc\":${VIDEO_SSRC} }] }" \
)
eval "$(echo ${res} | jq -r '@sh "producerId=\(.id)"')"
echo "Video producerId:"${producerId}
Video producerId:2e84c688-7d7d-44f4-90e0-0e92079881b5
is it correct to now use that reference when creating the video consumer
${HTTPIE_COMMAND} -v \
POST ${SERVER_URL}/rooms/${ROOM_ID}/broadcasters/${BROADCASTER_ID}/transports/${videoTransportId}/consume \
producerId="2e84c688-7d7d-44f4-90e0-0e92079881b5"
my assumptions on the above POST command variables are referencing the consumer.
${BROADCASTER_ID}
${videoTransportId}
So now I get a returned error
POST /rooms/testme3/broadcasters/eyfzU6h464Breuw8kBHyJ7OOWZMoaaa/transports/e91b2307-2197-4462-a69f-c958acb24bd2/consume HTTP/1.1
Accept: application/json, */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Length: 54
Content-Type: application/json
Host: gst.nxgn.link:4443
User-Agent: HTTPie/0.9.8
{
"producerId": "2e84c688-7d7d-44f4-90e0-0e92079881b5"
}
HTTP/1.1 400 missing producerId
Connection: keep-alive
Content-Length: 29
Content-Type: text/html; charset=utf-8
Date: Wed, 03 Feb 2021 11:07:25 GMT
ETag: W/"1d-uGdbc12KurUIaTDKO43P260k/ns"
X-Powered-By: Express
TypeError: missing producerId
I did not find a reference to this constructed error in the Rooms.js file
Can someone point me to where / how this error is being reported and if I am using the incorrect parameter in the POST call.