Difference between revisions of "GstWebRTC - AppRTC Audio Examples - x86"
m |
m |
||
Line 8: | Line 8: | ||
{{GstWebRTC Page| | {{GstWebRTC Page| | ||
− | [[GstWebRTC - AppRTC Signaler Examples|AppRTC Signaler Examples]]| | + | [[GstWebRTC - AppRTC Signaler Examples - x86|AppRTC Signaler Examples]]| |
[[GstWebRTC - AppRTC Video Examples - x86|Video - x86]]| | [[GstWebRTC - AppRTC Video Examples - x86|Video - x86]]| | ||
Revision as of 12:37, 10 February 2019
|
← |
⌂ Home |
→ |
This page presents some GstWebRTC 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 |
→ |