Skip to content

Commit 7508582

Browse files
committed
Do not use slow CDN and change default configs for encode-decode-worker page
1 parent 261401a commit 7508582

File tree

4 files changed

+36
-7
lines changed

4 files changed

+36
-7
lines changed

samples/encode-decode-worker/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ <h2>WebCodecs in Worker + RVFC</h2>
7777

7878
<div id="codecButtons">
7979
<p>Codec:</p>
80-
<input type="radio" id="H264" name="codec" value="H264" onchange="getCodecValue(this)">
80+
<input type="radio" id="H264" name="codec" value="H264" checked="checked" onchange="getCodecValue(this)">
8181
<label for="H.264">H.264</label><br>
8282
<input type="radio" id="H265" name="codec" value="H265" onchange="getCodecValue(this)">
8383
<label for="H.265">H.265</label><br>
84-
<input type="radio" id="VP8" name="codec" value="VP8" checked="checked" onchange="getCodecValue(this)">
84+
<input type="radio" id="VP8" name="codec" value="VP8" onchange="getCodecValue(this)">
8585
<label for="VP8">VP8</label><br>
8686
<input type="radio" id="VP9" name="codec" value="VP9" onchange="getCodecValue(this)">
8787
<label for="VP9">VP9</label><br>
@@ -127,11 +127,11 @@ <h2>WebCodecs in Worker + RVFC</h2>
127127

128128
<div id="modeButtons">
129129
<p>Scalability Mode:</p>
130-
<input type="radio" id="L1T1" name="mode" value="L1T1" onchange="getModeValue(this)">
130+
<input type="radio" id="L1T1" name="mode" value="L1T1" checked="checked" onchange="getModeValue(this)">
131131
<label for="L1T1">L1T1</label><br>
132132
<input type="radio" id="L1T2" name="mode" value="L1T2" onchange="getModeValue(this)">
133133
<label for="L1T2">L1T2</label><br>
134-
<input type="radio" id="L1T3" name="mode" value="L1T3" checked="checked" onchange="getModeValue(this)">
134+
<input type="radio" id="L1T3" name="mode" value="L1T3" onchange="getModeValue(this)">
135135
<label for="L1T3">L1T3</label><br>
136136
</div>
137137

@@ -166,7 +166,7 @@ <h2>WebCodecs in Worker + RVFC</h2>
166166
<br/></br>
167167
<button id="connect">Start</button>
168168
<button id="stop">Stop</button>
169-
<script src="https://cdn.plot.ly/plotly-2.18.2.min.js"></script>
169+
<script src="../third_party/plotly/plotly-2.18.2.min.js"></script>
170170
<script src="js/main.js"></script>
171171
</body>
172172
</html>

samples/encode-decode-worker/js/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
let preferredResolution;
44
let mediaStream, bitrate = 100000;
55
let stopped = false;
6-
let preferredCodec ="VP8";
7-
let mode = "L1T3";
6+
let preferredCodec ="H264";
7+
let mode = "L1T1";
88
let latencyPref = "realtime", bitPref = "variable";
99
let encHw = "no-preference", decHw = "no-preference";
1010
let streamWorker;

samples/third_party/plotly/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2021 Plotly, Inc
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

samples/third_party/plotly/plotly-2.18.2.min.js

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)