mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
18 lines
494 B
HTML
18 lines
494 B
HTML
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/video.js/dist/video-js.min.css"/>
|
||
|
<video
|
||
|
id="player"
|
||
|
class="video-js"
|
||
|
preload="auto"
|
||
|
controls >
|
||
|
<source id="src" />
|
||
|
</video>
|
||
|
<script src="https://cdn.jsdelivr.net/npm/video.js/dist/video.min.js"></script>
|
||
|
<script>
|
||
|
const source = location.search.substring(3);
|
||
|
document.getElementById("src").src = source;
|
||
|
let setup = {
|
||
|
playbackRates: [0.5, 1, 1.25, 1.5, 2, 4],
|
||
|
};
|
||
|
let player = videojs('player',setup);
|
||
|
</script>
|