Difference between revisions of "GstWebRTC - AppRTC Audio Examples - x86"

From RidgeRun Developer Connection
Jump to: navigation, search
Line 35: Line 35:
 
==== Example ====
 
==== Example ====
  
In this example we use rrwebrtcsink to send an audio stream and rrwebrtcsrc to receive the audio stream.
+
In this example, we use rrwebrtcbin to send an audio stream and rrwebrtcbin to receive the audio stream.
  
 
==== Send Pipeline ====
 
==== Send Pipeline ====
  
 
<syntaxhighlight lang=bash>
 
<syntaxhighlight lang=bash>
gst-launch-1.0 rrwebrtcsink start-call=true signaler=GstApprtcSignaler signaler::server_url=http://localhost:8080 \
+
gst-launch-1.0 rrwebrtcbin start-call=true signaler=GstApprtcSignaler signaler::server_url=http://localhost:8080 \
signaler::session_id=1234ridgerun name=web audiotestsrc is-live=true ! opusenc ! rtpopuspay ! web.audio
+
signaler::session_id=1234ridgerun name=web audiotestsrc is-live=true ! opusenc ! rtpopuspay ! web.audio_sink
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 47: Line 47:
  
 
<syntaxhighlight lang=bash>
 
<syntaxhighlight lang=bash>
gst-launch-1.0 rrwebrtcsrc start-call=false signaler=GstApprtcSignaler signaler::server_url=http://localhost:8080 \
+
gst-launch-1.0 rrwebrtcbin start-call=false signaler=GstApprtcSignaler signaler::server_url=http://localhost:8080 \
signaler::session_id=1234ridgerun name=web web.audio ! rtpopusdepay ! opusdec ! autoaudiosink
+
signaler::session_id=1234ridgerun name=web web.audio_src ! rtpopusdepay ! opusdec ! autoaudiosink
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Revision as of 12:04, 14 March 2019

Error something wrong.jpg Problems running the pipelines shown on this page?
Please see our GStreamer Debugging guide for help.


AppRTC Signaler Examples


Home

Video - x86



This page presents some GstRrWebRTC audio examples on x86 platform using AppRTC.

Server Setup

To run the examples first enable the Websocket server:

$GOPATH/bin/collidermain -port=8089 -tls=false

Then, enable the AppRTC Node server in a different terminal window:

cd <PATH>/apprtc-node-server
node ./bin/www

Note: Make sure you previously install dependencies needed for enable the servers, if you didn't follow this link [AppRTC Node Server with our websocket server]


Opus

Unidirectional elements

Example

In this example, we use rrwebrtcbin to send an audio stream and rrwebrtcbin to receive the audio stream.

Send Pipeline

gst-launch-1.0 rrwebrtcbin start-call=true signaler=GstApprtcSignaler signaler::server_url=http://localhost:8080 \
signaler::session_id=1234ridgerun name=web audiotestsrc is-live=true ! opusenc ! rtpopuspay ! web.audio_sink

Receive Pipeline

gst-launch-1.0 rrwebrtcbin start-call=false signaler=GstApprtcSignaler signaler::server_url=http://localhost:8080 \
signaler::session_id=1234ridgerun name=web web.audio_src ! rtpopusdepay ! opusdec ! autoaudiosink

Bidirectional elements

Example

In this example we use two rrwebrtcbins, each send an audio stream and receives each other audio stream.

Send-Receive Pipeline

gst-launch-1.0 rrwebrtcbin start-call=true signaler=GstApprtcSignaler signaler::server_url=http://localhost:8080 \
signaler::session_id=1234ridgerun name=web web.audio_src ! rtpopusdepay ! opusdec ! autoaudiosink \
audiotestsrc is-live=true ! opusenc ! rtpopuspay ! web.audio_sink

Send-Receive Pipeline

gst-launch-1.0 rrwebrtcbin start-call=false signaler=GstApprtcSignaler signaler::server_url=http://localhost:8080 \
signaler::session_id=1234ridgerun name=web web.audio_src ! rtpopusdepay ! opusdec ! autoaudiosink \
audiotestsrc is-live=true ! opusenc ! rtpopuspay ! web.audio_sink




AppRTC Signaler Examples


Home

Video - x86