mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
28 lines
856 B
HTML
28 lines
856 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>videojs-stream Demo</title>
|
|
<link href="node_modules/video.js/dist/video-js.css" rel="stylesheet">
|
|
|
|
</head>
|
|
<body>
|
|
<video id="videojs-stream-player" class="video-js vjs-default-skin" controls>
|
|
<source src="//vjs.zencdn.net/v/oceans.mp4" type='video/mp4'>
|
|
<source src="//vjs.zencdn.net/v/oceans.webm" type='video/webm'>
|
|
</video>
|
|
<ul>
|
|
<li><a href="/test/debug.html">Run unit tests in browser.</a></li>
|
|
|
|
</ul>
|
|
<script src="node_modules/video.js/dist/video.js"></script>
|
|
<script src="dist/videojs-stream.js"></script>
|
|
<script>
|
|
(function(window, videojs) {
|
|
var examplePlayer = window.examplePlayer = videojs('videojs-stream-player');
|
|
var stream = window.stream = examplePlayer.stream();
|
|
}(window, window.videojs));
|
|
</script>
|
|
</body>
|
|
</html>
|