All,
I'm unsuccessful in sending data over data channels in a videoroom. I've browsed various documentation and the group here, so this is where I'm at.
I have publisher 1 join in a room, and I create a data channel over their PC with
pc.createDataChannel("JanusDataChannel"). The channel label comes from <
https://github.com/meetecho/janus-gateway/issues/124> and from <
https://github.com/meetecho/janus-gateway/blob/v0.12.1/test/echo.py#L204>. I can see in the SDP offer / answer exchange that data is negotiated, as for instance in the SDP answer I see:
a=group:BUNDLE audio video data
a=mid:data
a=sctpmap:5000 webrtc-datachannel 65535I have a publisher 2 join in the same room, then issue a subscribe request in the videoroom for publisher 1, then negotiation happens, and publisher 2 successfully receives video / audio from publisher 1.
Now, when I send data from publisher 1 with
channel.send("some-data") I see in Janus logs that the data has been received:
[7807699545221270] SCTP data received of length 9 on channel with id 0.
[7807699545221270] Incoming SCTP contents: some-data
Got a text DataChannel message (9 bytes) to forwardHowever, publisher 2 never receives this data.
I also read from <
https://groups.google.com/g/meetecho-janus/c/vOkIkW2c0Gs/m/1NTGG4YNAQAJ> that "The core expects subscribers to create a default datachannel first", so I've tried also creating a data channel on publisher's 2 PC that subscribes to 1, to no avail. I've also tried creating a default data channel everywhere.
Can some kind soul tell me what I'm missing?
Thank you.
r.