Difference between revisions of "GstWebRTC - PubNub Web Pages - TX1/TX2"
m |
m |
||
Line 3: | Line 3: | ||
[[GstWebRTC - AppRTC Signaler Examples - TX1/TX2/Xavier|AppRTC]]| | [[GstWebRTC - AppRTC Signaler Examples - TX1/TX2/Xavier|AppRTC]]| | ||
− | + | == PubNub Official Demo == | |
The following figure show hows to establish a call using the official PubNub's WebRTC demo in https://www.pubnub.com/developers/demos/webrtc/ | The following figure show hows to establish a call using the official PubNub's WebRTC demo in https://www.pubnub.com/developers/demos/webrtc/ | ||
Line 9: | Line 9: | ||
[[File:PubNub_Google_Chrome.png|700px|center|Establish a WebRTC call with https://www.pubnub.com/developers/demos/webrtc/]] | [[File:PubNub_Google_Chrome.png|700px|center|Establish a WebRTC call with https://www.pubnub.com/developers/demos/webrtc/]] | ||
− | + | ===Follow these steps=== | |
# Make sure to type the number above the message "this is your phone number" in the pipeline description | # Make sure to type the number above the message "this is your phone number" in the pipeline description | ||
Line 15: | Line 15: | ||
# Launch the pipeline, the call should start right away (in Chrome), a couple of seconds at most (in Firefox). | # Launch the pipeline, the call should start right away (in Chrome), a couple of seconds at most (in Firefox). | ||
− | + | ===Pipelines=== | |
+ | |||
+ | ====Send/receive (VP8)==== | ||
<pre style="white-space: pre-wrap;"> | <pre style="white-space: pre-wrap;"> | ||
GST_DEBUG=3 DISPLAY=:0 gst-launch-1.0 rrwebrtcbin rtcp-mux=true start-call=true signaler::user-channel=$USER_CHANNEL signaler::peer-channel=$PEER_CHANNEL name=web nvcamerasrc sensor-id=0 ! nvvidconv ! omxvp8enc ! rtpvp8pay ! web.video_sink web.video_src ! rtpvp8depay ! omxvp8dec ! videoconvert ! autovideosink | GST_DEBUG=3 DISPLAY=:0 gst-launch-1.0 rrwebrtcbin rtcp-mux=true start-call=true signaler::user-channel=$USER_CHANNEL signaler::peer-channel=$PEER_CHANNEL name=web nvcamerasrc sensor-id=0 ! nvvidconv ! omxvp8enc ! rtpvp8pay ! web.video_sink web.video_src ! rtpvp8depay ! omxvp8dec ! videoconvert ! autovideosink | ||
</pre> | </pre> | ||
− | + | ====Send only (VP8)==== | |
<pre style="white-space: pre-wrap;"> | <pre style="white-space: pre-wrap;"> | ||
GST_DEBUG=3 DISPLAY=:0 gst-launch-1.0 rrwebrtcbin rtcp-mux=true start-call=true signaler::user-channel=$USER_CHANNEL signaler::peer-channel=$PEER_CHANNEL name=web nvcamerasrc sensor-id=0 ! nvvidconv ! omxvp8enc ! rtpvp8pay ! web.video_sink | GST_DEBUG=3 DISPLAY=:0 gst-launch-1.0 rrwebrtcbin rtcp-mux=true start-call=true signaler::user-channel=$USER_CHANNEL signaler::peer-channel=$PEER_CHANNEL name=web nvcamerasrc sensor-id=0 ! nvvidconv ! omxvp8enc ! rtpvp8pay ! web.video_sink | ||
</pre> | </pre> | ||
− | + | ====Receive only (VP8)==== | |
<pre style="white-space: pre-wrap;"> | <pre style="white-space: pre-wrap;"> | ||
GST_DEBUG=3 DISPLAY=:0 gst-launch-1.0 rrwebrtcbin rtcp-mux=true start-call=true signaler::user-channel=$USER_CHANNEL signaler::peer-channel=$PEER_CHANNEL name=web web.video_src ! rtpvp8depay ! omxvp8dec ! videoconvert ! autovideosink | GST_DEBUG=3 DISPLAY=:0 gst-launch-1.0 rrwebrtcbin rtcp-mux=true start-call=true signaler::user-channel=$USER_CHANNEL signaler::peer-channel=$PEER_CHANNEL name=web web.video_src ! rtpvp8depay ! omxvp8dec ! videoconvert ! autovideosink |
Revision as of 15:31, 4 February 2020
← |
⌂ Home |
→ |
Contents
PubNub Official Demo
The following figure show hows to establish a call using the official PubNub's WebRTC demo in https://www.pubnub.com/developers/demos/webrtc/
Follow these steps
- Make sure to type the number above the message "this is your phone number" in the pipeline description
- Just type the pipeline's name in the bottom text bar. In the examples 123 this would be $USER_CHANNEL or 123, don't press any of the other botons
- Launch the pipeline, the call should start right away (in Chrome), a couple of seconds at most (in Firefox).
Pipelines
Send/receive (VP8)
GST_DEBUG=3 DISPLAY=:0 gst-launch-1.0 rrwebrtcbin rtcp-mux=true start-call=true signaler::user-channel=$USER_CHANNEL signaler::peer-channel=$PEER_CHANNEL name=web nvcamerasrc sensor-id=0 ! nvvidconv ! omxvp8enc ! rtpvp8pay ! web.video_sink web.video_src ! rtpvp8depay ! omxvp8dec ! videoconvert ! autovideosink
Send only (VP8)
GST_DEBUG=3 DISPLAY=:0 gst-launch-1.0 rrwebrtcbin rtcp-mux=true start-call=true signaler::user-channel=$USER_CHANNEL signaler::peer-channel=$PEER_CHANNEL name=web nvcamerasrc sensor-id=0 ! nvvidconv ! omxvp8enc ! rtpvp8pay ! web.video_sink
Receive only (VP8)
GST_DEBUG=3 DISPLAY=:0 gst-launch-1.0 rrwebrtcbin rtcp-mux=true start-call=true signaler::user-channel=$USER_CHANNEL signaler::peer-channel=$PEER_CHANNEL name=web web.video_src ! rtpvp8depay ! omxvp8dec ! videoconvert ! autovideosink
← |
⌂ Home |
→ |