You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use DC channel to send data and want the subprotocol to be HTTP, but the subprotocol is null。I found in the function janus_ice_incoming_data There is no assignment to protocol in data。
Mh, when I added support for subprotocols I think I checked this and it seemed to be working at the time. I'll check if it's actually broken, and in case push a fix. Thanks for the heads up!
the event on the incoming data message sent back by the plugin would have the protocol correctly set, so I thought this was working. Actually, the protocol field in this case was set by the browser, as the browser created the channel with that label/protocol, and so tagged the protocol accordingly on the incoming message. Modifying the plugin to display the protocol in incoming_data did confirm it wasn't being received, as you said. Creating labels with a custom protocol from a plugin does work, instead, so the problem is indeed only on incoming messages. I'll push a fix shortly.
When I use DC channel to send data and want the subprotocol to be HTTP, but the subprotocol is null。I found in the function janus_ice_incoming_data There is no assignment to protocol in data。
I changed the code and it can run normally.
janus_plugin_data data = { .label = label, .binary = !textdata, .buffer = buffer, .length = length, .protocol = protocol };
The text was updated successfully, but these errors were encountered: