Difference between revisions of "GstWebRTC - AppRTC Audio Examples - x86"
m |
Maumontero (talk | contribs) |
||
Line 11: | Line 11: | ||
[[GstWebRTC - AppRTC Video Examples - x86|Video - x86]]| | [[GstWebRTC - AppRTC Video Examples - x86|Video - x86]]| | ||
− | This page presents some | + | This page presents some GstRrWebRTC audio examples on '''x86 platform''' using AppRTC. |
__TOC__ | __TOC__ | ||
== Server Setup == | == Server Setup == |
Revision as of 11:09, 21 February 2019
Problems running the pipelines shown on this page? |
← |
⌂ Home |
→ |
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 rrwebrtcsink to send an audio stream and rrwebrtcsrc to receive the audio stream.
Send Pipeline
gst-launch-1.0 rrwebrtcsink 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
Receive Pipeline
gst-launch-1.0 rrwebrtcsrc start-call=false signaler=GstApprtcSignaler signaler::server_url=http://localhost:8080 \
signaler::session_id=1234ridgerun name=web web.audio ! 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
← |
⌂ Home |
→ |