Jump to content

GstWebRTC - Data Channel: Difference between revisions

no edit summary
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).  


* '''data-channel-status:'''
This property represents the connection status, which indicate if data channel is currently connected. If not used, such information wont be displayed ('''false''' by default).


==Data Channel Usage==


There is an application called '''datachannel'' inside the '''gst-webrtc/tests/examples/data_channel''' folder. This application allows to establish communication between two endpoints in order to transfer audio, video and data.


===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]]
932

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.