File tree Expand file tree Collapse file tree 6 files changed +72
-39
lines changed Expand file tree Collapse file tree 6 files changed +72
-39
lines changed Original file line number Diff line number Diff line change 3
3
< head >
4
4
< meta charset ="UTF-8 ">
5
5
< title > WebCodecs Stream</ title >
6
- < style >
7
- body {
8
- background-color : # 333 ;
9
- color : # fff ;
10
- font-size : large;
11
- }
12
-
13
- a {
14
- color : # 0099ff ; /* Light blue */
15
- }
16
-
17
- a : hover {
18
- color : # 00ccff ; /* Slightly lighter blue */
19
- }
20
-
21
- ul , p {
22
- margin-top : 6px ;
23
- margin-bottom : 6px ;
24
- }
25
-
26
- </ style >
6
+ < link rel ="stylesheet " href ="../style.css ">
27
7
</ head >
28
8
< body >
29
9
< p >
49
29
Video "< a href ="https://peach.blender.org/ "> Big Buck Bunny</ a > " by Blender Foundation, used under < a
50
30
href ="https://creativecommons.org/licenses/by/3.0/ "> CC BY 3.0</ a > .
51
31
</ p >
52
- < button > Play Big Buck Bunny</ button >
32
+ < button > Play Big Buck Bunny</ button > or select a local file:
53
33
< input type ="file " id ="videoFile " accept ="video/* ">
54
34
< br />
55
35
< video autoplay playsinline controls > </ video >
Original file line number Diff line number Diff line change 2
2
< head >
3
3
< meta charset ="UTF-8 ">
4
4
< title > Video to MediaStream using Canvas.captureStream and WebAudio</ title >
5
+ < link rel ="stylesheet " href ="../style.css ">
5
6
< style >
6
- body {
7
- background-color : # 333 ;
8
- color : # fff ;
9
- }
10
-
11
7
div # results {
12
8
display : flex;
13
9
}
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="UTF-8 ">
5
+ < title > Client-side Examples on the ways to send a video file over WebRTC</ title >
6
+ < link rel ="stylesheet " href ="style.css ">
7
+ </ head >
8
+ < body >
9
+ < p >
10
+ 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.
12
+ </ p >
13
+ < ul >
14
+ < li >
15
+ < a href ="screenshare/screenshareVideoPC.html "> getDisplayMedia of pop-out video file</ a > - load a video file into a pop-up
16
+ and use the < code > getDisplayMedia</ code > for capture.
17
+ </ li >
18
+ < li >
19
+ < a href ="captureStream/captureStream.html "> VideoElement Capture Stream</ a > - capture the video and audio directly from a
20
+ < code > video</ code > element. The audio is captured using the Web Audio API and combined with the video stream
21
+ to create a < code > MediaStream</ code > .
22
+ </ li >
23
+ < li >
24
+ < a href ="captureStream/captureStreamWebAudio.html "> VideoElement Capture Stream with WebAudio</ a > - same as above, but experimenting
25
+ with using WebAudio for local audio control.
26
+ </ li >
27
+ < li >
28
+ < a href ="canvas/canvasCapture.html "> Canvas Capture + Web Audio</ a > - write a source video to a canvas and then use
29
+ < code > canvas.captureStream()</ code > to capture the video with Web Audio API to capture the audio.
30
+ </ li >
31
+ < li >
32
+ < a href ="WebCodecs/decodeToVideo.html "> WebCodecs</ a > - load a video file and use WebCodecs to convert it to a MediaStream
33
+ </ li >
34
+
35
+ </ ul >
36
+ </ body >
37
+ </ html >
Original file line number Diff line number Diff line change 2
2
< html lang ="en ">
3
3
< head >
4
4
< meta charset ="UTF-8 ">
5
- < title > Screenshare a video file</ title >
6
- < style >
7
- body {
8
- background-color : # 333 ;
9
- color : # fff ;
10
- }
11
- </ style >
5
+ < title > Basic screenshare a video file example</ title >
6
+ < link rel ="stylesheet " href ="../style.css ">
12
7
</ head >
13
8
< body >
14
9
< input type ="file " id ="videoFile " accept ="video/* "> Load and play</ input >
Original file line number Diff line number Diff line change 3
3
< head >
4
4
< meta charset ="UTF-8 ">
5
5
< title > Screenshare a video file</ title >
6
+ < link rel ="stylesheet " href ="../style.css ">
6
7
< style >
7
- body {
8
- background-color : # 333 ;
9
- color : # fff ;
10
- }
11
-
12
8
div .output {
13
9
display : flex;
14
10
}
Original file line number Diff line number Diff line change
1
+ @import url ('https://fonts.googleapis.com/css2?family=Ubuntu&display=swap' );
2
+ @import url ('https://fonts.googleapis.com/css2?family=Ubuntu+Mono&display=swap' );
3
+
4
+ body {
5
+ background-color : # 333 ;
6
+ color : # fff ;
7
+ font-size : 20px ;
8
+ font-family : 'Ubuntu' , sans-serif;
9
+ max-width : 1200px ;
10
+ }
11
+
12
+ a {
13
+ color : # 0099ff ; /* Light blue */
14
+ font-weight : bold;
15
+ }
16
+
17
+ a : hover {
18
+ color : # 00ccff ; /* Slightly lighter blue */
19
+ font-weight : unset;
20
+ }
21
+
22
+ ul , li {
23
+ margin-top : 6px ;
24
+ margin-bottom : 6px ;
25
+ }
26
+ code {
27
+ font-family : 'Ubuntu Mono' , monospace;
28
+ color : # dddddd ;
29
+ }
You can’t perform that action at this time.
0 commit comments