Skip to content

Commit 0806fc2

Browse files
readme
1 parent 6f125a0 commit 0806fc2

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<body>
99
<p>
1010
Examples of how to convert a video file to a <code>MediaStream</code> where it can be sent via WebRTC.
11-
See <a href="https://webrtcHacks.com">webrtcHacks</a> for full details and commentary.
11+
See <a href="https://webrtcHacks.com">webrtcHacks</a> for full details, commentary, and comparisons.
1212
</p>
1313
<ul>
1414
<li>

readme.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Examples of how to convert a video file to a `MediaStream` where it can be sent via WebRTC.
2+
See [webrtcHacks post](https://webrtchacks.com/all-the-ways-to-…file-over-webrtc) for full details, commentary, and comparisons.
3+
4+
### Examples
5+
- [getDisplayMedia of pop-out video file](screenshare/screenshareVideoPC.html) - load a video file into a pop-up and use `getDisplayMedia` for capture.
6+
- [VideoElement Capture Stream](captureStream/captureStream.html) - capture the video and audio directly from a `video` element. The audio is captured using the Web Audio API and combined with the video stream to create a `MediaStream`.
7+
- [VideoElement Capture Stream with WebAudio](captureStream/captureStreamWebAudio.html) - same as above, but experimenting with using WebAudio for local audio control.
8+
- [Canvas Capture + Web Audio](canvas/canvasCapture.html) - write a source video to a canvas and then use `canvas.captureStream()` to capture the video with Web Audio API to capture the audio.
9+
- [WebCodecs](WebCodecs/decodeToVideo.html) - load a video file and use WebCodecs to convert it to a MediaStream
10+
11+
### Demos
12+
- [getDisplayMedia of pop-out video file](screenshare/screenshareVideoPC.html) - load a video file into a pop-up and use the `getDisplayMedia` for capture.
13+
- [VideoElement Capture Stream](captureStream/captureStream.html) - capture the video and audio directly from a `video` element. The audio is captured using the Web Audio API and combined with the video stream to create a `MediaStream`.
14+
- [VideoElement Capture Stream with WebAudio](captureStream/captureStreamWebAudio.html) - same as above, but experimenting with using WebAudio for local audio control.
15+
- [Canvas Capture + Web Audio](canvas/canvasCapture.html) - write a source video to a canvas and then use `canvas.captureStream()` to capture the video with Web Audio API to capture the audio.
16+
- [WebCodecs](WebCodecs/decodeToVideo.html) - load a video file and use WebCodecs to convert it to a MediaStream
17+
18+
19+
### CREDITS
20+
Big Buck Bunny video converted to 640x360 at 30 fps from [peach.blender.org](https://peach.blender.org/).

0 commit comments

Comments
 (0)