Awesome
ipywebrtc
WebRTC and MediaStream API exposed in the Jupyter notebook/lab.
See this tweet for a demo screencast.
Why use ipywebrtc?
Using ipywebrtc you can create a MediaStream out of:
- Any ipywidget.
- A video file.
- An image file.
- An audio file.
- Your webcam/camera.
From this MediaStream you can:
- Record a movie.
- Record an image snapshot.
- Record an audio fragment.
- Stream it to peers using the simple chat function
- Use it as a texture in ipyvolume
Demos
WebRTC and ipyvolume
Use remote MediaStreams and show them in 3d using ipyvolume.
ImageRecorder
Record and image from any stream for postprocessing.
WidgetStream
Turn any widget into a MediaStream.
Installation
To install:
$ pip install ipywebrtc # will auto enable for notebook >= 5.3
For a development installation (requires npm),
$ git clone https://github.com/maartenbreddels/ipywebrtc
$ cd ipywebrtc
$ pip install -e .
$ jupyter nbextension install --py --symlink --sys-prefix ipywebrtc
$ jupyter nbextension enable --py --sys-prefix ipywebrtc
$ jupyter labextension develop . --overwrite