]> ToastFreeware Gitweb - toast/stream2beamer.git/blobdiff - stream2beamer.md
Play with new structure of laplace client.
[toast/stream2beamer.git] / stream2beamer.md
index 41e74abcea65520fb51bea67390261aa8eecea45..3cb85521e0921b25bce4b5cae82c6a7a9dba391a 100644 (file)
@@ -10,6 +10,13 @@ IPv6+IPv4, and no TLS:
 
     ./laplace -addr "[::]:8080" -tls=false
 
+## WebRTC signaling
+
+* https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API/Signaling_and_video_calling
+* https://www.tutorialspoint.com/webrtc/webrtc_signaling.htm
+* https://www.html5rocks.com/en/tutorials/webrtc/infrastructure/
+* https://github.com/topics/webrtc-signaling
+
 # gstreamer
 * Supports RTP
 * Supports webcam capture via v4l (video for linux)
@@ -29,11 +36,10 @@ The examples at https://github.com/centricular/gstwebrtc-demos.git work once
 
 has been set (see https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/811)
 
-## websockets
-
-connecting to websockets (plus gstreamer and v4l2sink)
+There's a new recvonly example:
 
-https://michael.stapelberg.ch/posts/2020-06-06-iphone-camera-linux-v4l2loopback/
+* https://github.com/centricular/gstwebrtc-demos/commit/000cfb6cd817ca0f07d761795b352a8b8b9074f8
+* `sendonly/webrtc-recvonly-h264.c`
 
 ## gstreamer examples
     gst-launch-1.0 -v playbin uri=file:///home/philipp/tmp/GerisGame.mp4
@@ -58,6 +64,31 @@ https://michael.stapelberg.ch/posts/2020-06-06-iphone-camera-linux-v4l2loopback/
 * https://github.com/xfxf/video-scripts/blob/master/michael/youtube-live.sh
   (and others in the same repo)
     
+## websockets
+
+connecting to websockets (plus gstreamer and v4l2sink)
+
+https://michael.stapelberg.ch/posts/2020-06-06-iphone-camera-linux-v4l2loopback/
+
+       # send
+       laplace / chromium
+
+       # receive
+       websocat --insecure "wss://localhost:8080/ws_connect?id=cranky_kind_chipmunk"
+
+## more v4l2loopback/v4l2sink
+
+       # send
+       gst-launch-1.0 videotestsrc ! v4l2sink device=/dev/video42
+
+       # receive
+       cvlc v4l2:///dev/video42
+
+## SRT and gstreamer
+
+* https://github.com/Haivision/srt/blob/master/docs/gstreamer.md
+* https://srtlab.github.io/srt-cookbook/
+
 # VLC
 Note that you have to close VLC and open it again for new streaming as VLC leaves the connections
 open (I spent hours figuring out why http based streaming doesn't work - `netstat -4 --ip` is nice