OpenSight / janus-cloud

a cluster solution for Janus WebRTC server, by API proxy approach
GNU Affero General Public License v3.0
205 stars 49 forks source link

Janus room_id in webhook is not the same #20

Closed Fed0t closed 3 years ago

Fed0t commented 3 years ago

Hello,

When we create a new videoroom

videoRoomHandle.create(videoRoomOptions).then((result) => {
      janusRoomId = result.room;
})

The result.room is different from what we receive from janus.eventhandler.sampleevh.jcfg !

It is usefull the "talking" key from participants list: https://github.com/OpenSight/janus-cloud/wiki/VideoRoom-plugin-documentation But in this moment it is not so useful without webhooks, because we cant make requests every second or more then one per second to get the list of participants.

Thanks!

jamken commented 3 years ago

// The result.room is different from what we receive from janus.eventhandler.sampleevh.jcfg !

Yes, you create a room for janus-cloud, but janus.eventhandler send you the name of room in the jauns-gateway. Internally, janus-cloud would create one room of janus-gateway for each publisher, to implment the scability. So the name of the janus-cloud room is different for the name of the under-layer janus room