Difference between revisions of "GstWebRTC - PubNub Audio Examples - x86"
m (Spalli moved page GstWebRTC - PubNub Audio Examples to GstWebRTC - PubNub Audio Examples - x86 without leaving a redirect: This is x86 platform specific page) |
m |
||
(11 intermediate revisions by 2 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 == | ||
Line 21: | Line 13: | ||
==== Example ==== | ==== Example ==== | ||
− | In this example we use | + | In this example, we use rrwebrtcbin to send an audio stream and rrwebrtcbin to receive the audio stream. |
==== Send Pipeline ==== | ==== Send Pipeline ==== | ||
Line 28: | Line 20: | ||
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::server_url=https://webrtc.ridgerun.com:7443 \ | ||
signaler::user-channel=$USER_CHANNEL signaler::peer-channel=$PEER_CHANNEL name=web \ | signaler::user-channel=$USER_CHANNEL signaler::peer-channel=$PEER_CHANNEL name=web \ | ||
− | audiotestsrc is-live=true ! opusenc ! rtpopuspay ! web. | + | audiotestsrc is-live=true ! opusenc ! rtpopuspay ! web.audio_sink |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 39: | Line 31: | ||
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::server_url=https://webrtc.ridgerun.com:7443 \ | ||
signaler::user-channel=$USER_CHANNEL signaler::peer-channel=$PEER_CHANNEL name=web \ | signaler::user-channel=$USER_CHANNEL signaler::peer-channel=$PEER_CHANNEL name=web \ | ||
− | web. | + | web.audio_src ! rtpopusdepay ! opusdec ! autoaudiosink |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 75: | Line 67: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | | | + | {{GstWebRTC/Foot|previous=PubNub Signaler Examples - x86|next=PubNub Video Examples - x86}} |
Latest revision as of 14: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.
|
Contents
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