GstWebRTC - Data Channel: Difference between revisions
No edit summary |
No edit summary |
||
Line 24: | Line 24: | ||
Used to enable the negotiation of the WebRTC data channel for an endpoint. It is required to use the '''new_data''' and '''on_new_data''' callbacks without data-pads. If not used, the data channel support wont be enabled ('''false''' by default). | Used to enable the negotiation of the WebRTC data channel for an endpoint. It is required to use the '''new_data''' and '''on_new_data''' callbacks without data-pads. If not used, the data channel support wont be enabled ('''false''' by default). | ||
===Options=== | ===Options=== | ||
Line 47: | Line 43: | ||
</pre> | </pre> | ||
Go to the browser on the https://webrtc.ridgerun.com:8443/ page and use '''room0''' as the '''Session ID'''. It is not necessary to press the '''Call''' button since the '''-s''' option is used. After the connection establishment you should be able to send messages from the pipeline to the browser and from the browser to the pipeline, as shown below. | |||
[[File:dc-example.png|700px|thumbnail|center|Datachannel App Example]] | [[File:dc-example.png|700px|thumbnail|center|Datachannel App Example]] |