[jitsi-dev] [jitsi/jitsi-videobridge] Videobridge REST response to SDP


#1

Hello.
In documentation for rest videobridge there is a string:

"We take that response and translate it into SDP to create an offer for the new client."
We should do it after patch to colibri/conferences/xxx

It looks like

{
  "channel-bundles": [{
    "id": "9f537ebb-1c2a-4ee9-9940-373304f9b260",
    "transport": {
      "candidates": [{
        "generation": 0,
        "component": 1,
        "protocol": "ssltcp",
        "port": 4443,
        "ip": "192.168.1.5",
        "tcptype": "passive",
        "foundation": "1",
        "id": "726d87443673cf175f986b1ba5c0581015d52973",
        "priority": 2130706431,
        "type": "host",
        "network": 0
      },....],
      "xmlns": "urn:xmpp:jingle:transports:ice-udp:1",
      "ufrag": "4g9st1an0foege",
      "rtcp-mux": true,
      "pwd": "qbqdnlu2dlhuq41u214bgrjnm",
      "fingerprints": [{
        "fingerprint": "24:2F:5C:14:57:EC:61:BB:3A:58:BF:8C:EB:F0:08:CB:35:24:AF:81",
        "setup": "actpass",
        "hash": "sha-1"
      }]
    }
  }],
  "contents": [
  {
    "channels": [{
      "endpoint": "9f537ebb-1c2a-4ee9-9940-373304f9b260",
      "channel-bundle-id": "9f537ebb-1c2a-4ee9-9940-373304f9b260",
      "sources": [548736520],
      "rtp-level-relay-type": "translator",
      "expire": 10,
      "initiator": true,
      "id": "f0bbd42345a81848",
      "receive-simulcast-layer": null,
      "direction": "sendrecv",
      "last-n": 2
    }],
    "name": "video"
  },...],
  "id": "726d87443673cf17"
}

But how to convert that response to SDP? May be some library or any description?
I have reviewed lib jistsi meet and others but couldn't find that.
Also I looked http://lists.jitsi.org/pipermail/users/2014-March/006940.html and oters.

Is there any function, that can convert that format to SDP?


#2

don't know of anything that will do the sdp<->colibri conversion. we use
the rest api as well and wrote that code (to do the conversion back and
forth) on our own.

···

On Wed, Jul 6, 2016 at 2:03 PM, mpbikc <mpbikc@yandex.ru> wrote:

Hello.
In documentation for rest videobridge there is a string:

"We take that response and translate it into SDP to create an offer for
the new client."
We should do it after patch to colibri/conferences/xxx

It looks like

{
        "channel-bundles": [{
                "id": "9f537ebb-1c2a-4ee9-9940-373304f9b260",
                "transport": {
                        "candidates": [{
                                "generation": 0,
                                "component": 1,
                                "protocol": "ssltcp",
                                "port": 4443,
                                "ip": "192.168.1.5",
                                "tcptype": "passive",
                                "foundation": "1",
                                "id":
"726d87443673cf175f986b1ba5c0581015d52973",
                                "priority": 2130706431,
                                "type": "host",
                                "network": 0
                        },....],
                        "xmlns": "urn:xmpp:jingle:transports:ice-udp:1",
                        "ufrag": "4g9st1an0foege",
                        "rtcp-mux": true,
                        "pwd": "qbqdnlu2dlhuq41u214bgrjnm",
                        "fingerprints": [{
                                "fingerprint":
"24:2F:5C:14:57:EC:61:BB:3A:58:BF:8C:EB:F0:08:CB:35:24:AF:81",
                                "setup": "actpass",
                                "hash": "sha-1"
                        }]
                }
        }],
        "contents": [
        {
                "channels": [{
                        "endpoint": "9f537ebb-1c2a-4ee9-9940-373304f9b260",
                        "channel-bundle-id":
"9f537ebb-1c2a-4ee9-9940-373304f9b260",
                        "sources": [548736520],
                        "rtp-level-relay-type": "translator",
                        "expire": 10,
                        "initiator": true,
                        "id": "f0bbd42345a81848",
                        "receive-simulcast-layer": null,
                        "direction": "sendrecv",
                        "last-n": 2
                }],
                "name": "video"
        },...],
        "id": "726d87443673cf17"
}

But how to convert that response to SDP? May be some library or any
description?
I have reviewed lib jistsi meet and others but couldn't find that.
Also I looked
http://lists.jitsi.org/pipermail/users/2014-March/006940.html and oters.

Is there any function, that can convert that format to SDP?

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#3

Hello! Thanks for an answer

As I understand - you have used videobridge and created cool product.
I’m a newbie in videobridge. Can you please confirm or tell me my mistake.

After I have recieved conf ID, I

  1. Make patch to /colibri/conferences/a439deb315b4128c
  2. Convert the response to SDP and with that sdp in browser call createAnswer()
    After that I can see in statistics, that connection is in progress

Then I wish to one user send video, and other user to recieve.

For publisher:
3) I attachStream to connected element(Can I do so?)
4) Sent patch to /colibri/conferences/a439deb315b4128c where I add only payloadTypes like:
{
“id”: 100,
“name”: “VP8”,
“clockrate”: 90000,
“channels”: 0,
“parameters”: {
“rtcp-fb”: [
“100 ccm fir”,
“100 nack”,
“100 goog-remb”
]
}
}
For viewer - I don’t attach anithing, but when I receve gotRemoteStream - I see remote stream and try to show it, but it is empty, thow statistic tell that I have several videostreams.

What I make wrang? I read documentation numerous number of times…

···

07.07.2016, 01:35, “Brian Baldino” brian@highfive.com:

don’t know of anything that will do the sdp<->colibri conversion. we use the rest api as well and wrote that code (to do the conversion back and forth) on our own.

On Wed, Jul 6, 2016 at 2:03 PM, mpbikc mpbikc@yandex.ru wrote:

Hello.
In documentation for rest videobridge there is a string:

“We take that response and translate it into SDP to create an offer for the new client.”
We should do it after patch to colibri/conferences/xxx

It looks like

{
“channel-bundles”: [{
“id”: “9f537ebb-1c2a-4ee9-9940-373304f9b260”,
“transport”: {
“candidates”: [{
“generation”: 0,
“component”: 1,
“protocol”: “ssltcp”,
“port”: 4443,
“ip”: “192.168.1.5”,
“tcptype”: “passive”,
“foundation”: “1”,
“id”: “726d87443673cf175f986b1ba5c0581015d52973”,
“priority”: 2130706431,
“type”: “host”,
“network”: 0
},…],
“xmlns”: “urn:xmpp:jingle:transports:ice-udp:1”,
“ufrag”: “4g9st1an0foege”,
“rtcp-mux”: true,
“pwd”: “qbqdnlu2dlhuq41u214bgrjnm”,
“fingerprints”: [{
“fingerprint”: “24:2F:5C:14:57:EC:61:BB:3A:58:BF:8C:EB:F0:08:CB:35:24:AF:81”,
“setup”: “actpass”,
“hash”: “sha-1”
}]
}
}],
“contents”: [
{
“channels”: [{
“endpoint”: “9f537ebb-1c2a-4ee9-9940-373304f9b260”,
“channel-bundle-id”: “9f537ebb-1c2a-4ee9-9940-373304f9b260”,
“sources”: [548736520],
“rtp-level-relay-type”: “translator”,
“expire”: 10,
“initiator”: true,
“id”: “f0bbd42345a81848”,
“receive-simulcast-layer”: null,
“direction”: “sendrecv”,
“last-n”: 2
}],
“name”: “video”
},…],
“id”: “726d87443673cf17”
}

But how to convert that response to SDP? May be some library or any description?
I have reviewed lib jistsi meet and others but couldn’t find that.
Also I looked http://lists.jitsi.org/pipermail/users/2014-March/006940.html and oters.

Is there any function, that can convert that format to SDP?


dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

,


dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev