Jump to content

GstWebRTC - GstWebRTC Basics: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 33: Line 33:


=== Direction ===
=== Direction ===
==== Unidirectional elements====
RidgeRun's GstWebRTCSink and GstWebRTCSrc are used as standard GStreamer sink and source elements respectively. If a pipeline only uses the sink element, it becomes a send-only endpoint.  
RidgeRun's GstWebRTCSink and GstWebRTCSrc are used as standard GStreamer sink and source elements respectively. If a pipeline only uses the sink element, it becomes a send-only endpoint.  
<br />
<br />
Line 44: Line 45:
<br />
<br />
[[File:Gstwebrtc-sendreceive.png|400px|thumb|center|Figure 3. Pipeline as a WebRTC send-receive endpoint.]]
[[File:Gstwebrtc-sendreceive.png|400px|thumb|center|Figure 3. Pipeline as a WebRTC send-receive endpoint.]]
<br /><br />
=== Media Type ===
=== Media Type ===
Both, the sink and source elements may send/receive audio, video or both simultaneously. The supported capabilities are determined at runtime based on the pads that where requested for the elements. Simply said, if a GstWebRTCSink element was created with a single audio pad, then it will only be capable of sending audio. Similarly, if a GstWebRTCSrc was created with video and audio pads, it will be capable of receiving both medias. Table 1 summarizes the complete set of possible configurations. At the time being, only one pad of each media type can be created.
Both, the sink and source elements may send/receive audio, video or both simultaneously. The supported capabilities are determined at runtime based on the pads that where requested for the elements. Simply said, if a GstWebRTCSink element was created with a single audio pad, then it will only be capable of sending audio. Similarly, if a GstWebRTCSrc was created with video and audio pads, it will be capable of receiving both medias. Table 1 summarizes the complete set of possible configurations. At the time being, only one pad of each media type can be created.
1,593

edits

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