Skip to content

Commit

Permalink
Merge pull request #540 from aboba/main
Browse files Browse the repository at this point in the history
Use plotly graphing library instead of Google Graphs in samples
  • Loading branch information
jan-ivar authored Aug 29, 2023
2 parents 081fde6 + 9dea588 commit d0e87c9
Show file tree
Hide file tree
Showing 3 changed files with 1,428 additions and 1,383 deletions.
22 changes: 16 additions & 6 deletions samples/webcodecs-echo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,23 @@ <h2>WebTransport Echo with WebCodecs in Worker + RVFC</h2>
<label for="AV1">AV1</label><br>
</div>

<div id="hwButtons">
<p>Hardware Acceleration Preference:</p>
<input type="radio" id="hw" name="hwAccel" value="prefer-hardware" onchange="getHwValue(this)">
<div id="encHwButtons">
<p>Encoder Hardware Acceleration Preference:</p>
<input type="radio" id="hw" name="encHwAccel" value="prefer-hardware" onchange="getEncHwValue(this)">
<label for="hw">Prefer Hardware</label><br>
<input type="radio" id="sw" name="hwAccel" value="prefer-software" onchange="getHwValue(this)">
<input type="radio" id="sw" name="encHwAccel" value="prefer-software" onchange="getEncHwValue(this)">
<label for="sw">Prefer Software</label><br>
<input type="radio" id="no-pref" name="hwAccel" value="no-preference" checked="checked" onchange="getHwValue(this)">
<input type="radio" id="no-pref" name="encHwAccel" value="no-preference" checked="checked" onchange="getEncHwValue(this)">
<label for="no-pref">No Preference</label><br>
</div>

<div id="decHwButtons">
<p>Decoder Hardware Acceleration Preference:</p>
<input type="radio" id="hw" name="decHwAccel" value="prefer-hardware" onchange="getDecHwValue(this)">
<label for="hw">Prefer Hardware</label><br>
<input type="radio" id="sw" name="decHwAccel" value="prefer-software" onchange="getDecHwValue(this)">
<label for="sw">Prefer Software</label><br>
<input type="radio" id="no-pref" name="decHwAccel" value="no-preference" checked="checked" onchange="getDecHwValue(this)">
<label for="no-pref">No Preference</label><br>
</div>

Expand Down Expand Up @@ -165,7 +175,7 @@ <h2>WebTransport Echo with WebCodecs in Worker + RVFC</h2>
<button id="connect">Start</button>
<button id="stop">Stop</button>
<br/></br>
<script src="https://www.gstatic.com/charts/loader.js"></script>
<script src="https://cdn.plot.ly/plotly-2.18.2.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>
Loading

0 comments on commit d0e87c9

Please sign in to comment.