Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pion/rtwatch
Watch videos with friends using WebRTC, let the server do the pausing and seeking.
https://github.com/pion/rtwatch
go golang pion streaming video webrtc
Last synced: about 1 month ago
JSON representation
Watch videos with friends using WebRTC, let the server do the pausing and seeking.
- Host: GitHub
- URL: https://github.com/pion/rtwatch
- Owner: pion
- Created: 2019-09-20T06:50:17.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-15T16:43:57.000Z (about 2 months ago)
- Last Synced: 2024-10-16T23:10:21.573Z (about 2 months ago)
- Topics: go, golang, pion, streaming, video, webrtc
- Language: Go
- Homepage: https://pion.ly/
- Size: 10.3 MB
- Stars: 302
- Watchers: 13
- Forks: 48
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-pion - pion/rtwatch - Watch videos with friends using WebRTC (Media API)
- awesome-repositories - pion/rtwatch - Watch videos with friends using WebRTC, let the server do the pausing and seeking. (Go)
- awesome-webrtc - rtwatch - Watch videos with friends using WebRTC, let the server do the pausing and seeking. (Projects / Streaming)
README
Watch videos with friends using WebRTC, let your backend do the pausing and seeking.
Using Pion WebRTC and GStreamer you can now watch videos in real-time with your friends. Watch your favorite movie perfectly synchronized with multiple viewers. If someone pauses it pauses for everyone, and no one can and no one fast forward only their video.
*rtwatch* is different then any other solution because all state is stored on the backend. Only the current audio/video frame is being sent to the viewers, there is no way they can download/cache the videos either for future usage.
## Instructions
### Install GStreamer
#### Debian/Ubuntu
`sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly`
#### Windows MinGW64/MSYS2
`pacman -S mingw-w64-x86_64-gstreamer mingw-w64-x86_64-gst-libav mingw-w64-x86_64-gst-plugins-good mingw-w64-x86_64-gst-plugins-bad mingw-w64-x86_64-gst-plugins-ugly`##### Error Handling
pkg-config --cflags -- gstreamer-1.0 gstreamer-app-1.0
pkg-config: exec: "pkg-config": executable file not found in %PATH%> After gstreamer installation,SET the `PATH` variable to `C:/{path to gstreamer}/bin`
Sorry, unimplemented: 64 bit mode not compiled in
> RUN `$ g++ -v`
> CHECK Target- x86_64-w64-mingw32(Required).
if not Download using [this](https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/installer/mingw-w64-install.exe/download)
#### macOS
```
brew install gst-plugins-good pkg-config gst-plugins-bad gst-plugins-ugly
export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"
```### Download and build rtwatch
```
git clone https://github.com/pion/rtwatch.git
cd rtwatch
go build .
```### Play your video
```
./rtwatch -container-path=/home/sean/video.mp4
> Video file '/home/sean/video.mp4' is now available on ':8080', have fun!
```### Watch your video with friends!
Open [http://localhost:8080](http://localhost:8080) and hit play. Open it in multiple tabs so you can see how it syncs between multiple viewers.You also have the option to Seek/Play/Pause! Press those buttons and watch the video state change for every viewer at the same time.