GstWebRTC - PubNub Audio Examples - x86: Difference between revisions
No edit summary |
mNo edit summary |
||
(23 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{GstWebRTC/Head|previous=PubNub Signaler Examples - x86|next=PubNub Video Examples - x86|keywords=GstRrWebRTC Examples,WebRTC Examples,GstRrWebRTC GStreamer pipelines,WebRTC GStreamer pipelines,GstRrWebRTC PubNub Signaler,WebRTC PubNub Signaler,WebRTC Audio Example, WebRTC GStreamer Audio pipelines,GstRrWebRTC PubNub,GstWebRTC Audio Example, GstRrWebRTC GStreamer Audio pipelines,WebRTC PubNub,signaling}} | |||
{{ | |||
This page presents some GstRrWebRTC audio examples on '''x86 platform''' using PubNub. | |||
<br> | |||
{{GStreamer debug}} | |||
== Opus == | == Opus == | ||
=== | === Unidirectional elements === | ||
==== | ==== Example ==== | ||
< | In this example, we use rrwebrtcbin to send an audio stream and rrwebrtcbin to receive the audio stream. | ||
</ | ==== Send Pipeline ==== | ||
<syntaxhighlight lang=bash> | |||
USER_CHANNEL=123 | |||
PEER_CHANNEL=123peer | |||
gst-launch-1.0 rrwebrtcbin rtcp-mux=true start-call=true signaler=GstPubnubSignaler \ | |||
signaler::server_url=https://webrtc.ridgerun.com:7443 \ | |||
signaler::user-channel=$USER_CHANNEL signaler::peer-channel=$PEER_CHANNEL name=web \ | |||
audiotestsrc is-live=true ! opusenc ! rtpopuspay ! web.audio_sink | |||
</syntaxhighlight> | |||
==== Receive Pipeline ==== | |||
<syntaxhighlight lang=bash> | |||
USER_CHANNEL=123peer | |||
PEER_CHANNEL=123 | |||
gst-launch-1.0 rrwebrtcbin rtcp-mux=true start-call=false signaler=GstPubnubSignaler \ | |||
signaler::server_url=https://webrtc.ridgerun.com:7443 \ | |||
signaler::user-channel=$USER_CHANNEL signaler::peer-channel=$PEER_CHANNEL name=web \ | |||
web.audio_src ! rtpopusdepay ! opusdec ! autoaudiosink | |||
</syntaxhighlight> | |||
=== Bidirectional elements === | |||
==== Example ==== | |||
In this example we use two rrwebrtcbins, each send an audio stream and receives each other audio stream. | |||
==== Send-Receive Pipeline ==== | ==== Send-Receive Pipeline ==== | ||
Line 31: | Line 48: | ||
USER_CHANNEL=123 | USER_CHANNEL=123 | ||
PEER_CHANNEL=123peer | PEER_CHANNEL=123peer | ||
gst-launch-1.0 | gst-launch-1.0 rrwebrtcbin rtcp-mux=true start-call=true signaler=GstPubnubSignaler \ | ||
signaler::server_url=https://webrtc.ridgerun.com:7443 \ | |||
signaler::user-channel=$USER_CHANNEL signaler::peer-channel=$PEER_CHANNEL name=web \ | |||
audiotestsrc is-live=true ! opusenc ! rtpopuspay ! web.audio_sink \ | audiotestsrc is-live=true ! opusenc ! rtpopuspay ! web.audio_sink \ | ||
web.audio_src ! rtpopusdepay ! opusdec ! autoaudiosink | web.audio_src ! rtpopusdepay ! opusdec ! autoaudiosink | ||
Line 41: | Line 60: | ||
USER_CHANNEL=123peer | USER_CHANNEL=123peer | ||
PEER_CHANNEL=123 | PEER_CHANNEL=123 | ||
gst-launch-1.0 | gst-launch-1.0 rrwebrtcbin rtcp-mux=true start-call=false signaler=GstPubnubSignaler \ | ||
signaler::server_url=https://webrtc.ridgerun.com:7443 \ | |||
signaler::user-channel=$USER_CHANNEL signaler::peer-channel=$PEER_CHANNEL name=web \ | |||
audiotestsrc is-live=true ! opusenc ! rtpopuspay ! web.audio_sink \ | audiotestsrc is-live=true ! opusenc ! rtpopuspay ! web.audio_sink \ | ||
web.audio_src ! rtpopusdepay ! opusdec ! autoaudiosink | web.audio_src ! rtpopusdepay ! opusdec ! autoaudiosink | ||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | {{GstWebRTC/Foot|previous=PubNub Signaler Examples - x86|next=PubNub Video Examples - x86}} |
Latest revision as of 19:24, 13 April 2020
GstWebRTC | ||||||||
---|---|---|---|---|---|---|---|---|
WebRTC Fundamentals | ||||||||
GstWebRTC Basics | ||||||||
|
||||||||
Evaluating GstWebRTC | ||||||||
Getting the code | ||||||||
Building GstWebRTC | ||||||||
Examples | ||||||||
|
||||||||
MCU Demo Application | ||||||||
Contact Us |
This page presents some GstRrWebRTC audio examples on x86 platform using PubNub.
Problems running the pipelines shown on this page? |
Opus
Unidirectional elements
Example
In this example, we use rrwebrtcbin to send an audio stream and rrwebrtcbin to receive the audio stream.
Send Pipeline
USER_CHANNEL=123 PEER_CHANNEL=123peer gst-launch-1.0 rrwebrtcbin rtcp-mux=true start-call=true signaler=GstPubnubSignaler \ signaler::server_url=https://webrtc.ridgerun.com:7443 \ signaler::user-channel=$USER_CHANNEL signaler::peer-channel=$PEER_CHANNEL name=web \ audiotestsrc is-live=true ! opusenc ! rtpopuspay ! web.audio_sink
Receive Pipeline
USER_CHANNEL=123peer PEER_CHANNEL=123 gst-launch-1.0 rrwebrtcbin rtcp-mux=true start-call=false signaler=GstPubnubSignaler \ signaler::server_url=https://webrtc.ridgerun.com:7443 \ signaler::user-channel=$USER_CHANNEL signaler::peer-channel=$PEER_CHANNEL 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
USER_CHANNEL=123 PEER_CHANNEL=123peer gst-launch-1.0 rrwebrtcbin rtcp-mux=true start-call=true signaler=GstPubnubSignaler \ signaler::server_url=https://webrtc.ridgerun.com:7443 \ signaler::user-channel=$USER_CHANNEL signaler::peer-channel=$PEER_CHANNEL name=web \ audiotestsrc is-live=true ! opusenc ! rtpopuspay ! web.audio_sink \ web.audio_src ! rtpopusdepay ! opusdec ! autoaudiosink
Send-Receive Pipeline
USER_CHANNEL=123peer PEER_CHANNEL=123 gst-launch-1.0 rrwebrtcbin rtcp-mux=true start-call=false signaler=GstPubnubSignaler \ signaler::server_url=https://webrtc.ridgerun.com:7443 \ signaler::user-channel=$USER_CHANNEL signaler::peer-channel=$PEER_CHANNEL name=web \ audiotestsrc is-live=true ! opusenc ! rtpopuspay ! web.audio_sink \ web.audio_src ! rtpopusdepay ! opusdec ! autoaudiosink