producerTransport.on("produce", (params, callback, error)
gets called with the following params
, before connectionstatechange
going to failed
:
{
"kind": "video",
"rtpParameters": {
"mid": "0",
"codecs": [
{
"mimeType": "video/VP8",
"payloadType": 120,
"clockRate": 90000,
"parameters": {
"max-fs": 12288,
"max-fr": 60
},
"rtcpFeedback": [
{
"type": "nack",
"parameter": ""
},
{
"type": "nack",
"parameter": "pli"
},
{
"type": "ccm",
"parameter": "fir"
},
{
"type": "goog-remb",
"parameter": ""
},
{
"type": "transport-cc",
"parameter": ""
}
]
},
{
"mimeType": "video/rtx",
"payloadType": 124,
"clockRate": 90000,
"parameters": {
"apt": 120
},
"rtcpFeedback": []
}
],
"headerExtensions": [
{
"uri": "urn:ietf:params:rtp-hdrext:sdes:mid",
"id": 3,
"encrypt": false,
"parameters": {}
},
{
"uri": "urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id",
"id": 8,
"encrypt": false,
"parameters": {}
},
{
"uri": "urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id",
"id": 9,
"encrypt": false,
"parameters": {}
},
{
"uri": "http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time",
"id": 4,
"encrypt": false,
"parameters": {}
},
{
"uri": "http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01",
"id": 7,
"encrypt": false,
"parameters": {}
},
{
"uri": "urn:ietf:params:rtp-hdrext:toffset",
"id": 5,
"encrypt": false,
"parameters": {}
}
],
"encodings": [
{
"ssrc": 984485447,
"rtx": {
"ssrc": 2603763488
},
"dtx": false
}
],
"rtcp": {
"cname": "{d853702e-07cc-4329-9764-ca8e1c92b0ff}",
"reducedSize": true
}
},
"appData": {
"kind": "video"
}
}
The only non-standard thing that I am doing is setting appData
to { "kind": "video" }