astrXbian/www/video-player/index.html

58 lines
2.9 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>IPFS Live Streaming</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/video-js.min.css" rel="stylesheet">
<link href="css/common.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="share-container absolute w-100 flex">
<button class="share-tweet compact">Share on Twitter</button>
<button class="share-link compact">Share link</button>
<input type="text" class="compact" style="flex:1; text-overflow: ellipsis" id="link" />
</div>
<div class="stream-container">
<video id="live" class="video-js vjs-default-skin vjs-big-play-centered vjs-fill" controls preload autoplay loop>
<p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video</p>
</video>
<div class="stream-selector absolute flex flex-justify-center flex-align-center bg-white" id="streamSelector">
<div id="selectStream" class="selector-option">
<h2 id="selectingTitle">Select source</h2>
<div class="stream-selector-options flex flex-justify-center flex-align-center">
<div class="stream-option-wrapper flex relative flex-justify-center" id="ipfsStream">
<button class="stream-option flex-justify-center flex-align-center ipfs-stream bg-white">
<img class="stream-option-graphic" src="graphics/ipfs-icon.svg" alt="IPFS graphic" />
<span class="button-label mt-1 color-accent">IPFS</span>
</button>
<div class="stream-option-title-helper none absolute pt-s">
<p>Play the stream through a peer-to-peer hypermedia protocol. More at <a href="https://ipfs.io" target="_blank">ipfs.io</a></p>
</div>
</div>
<div class="stream-option-wrapper flex relative flex-justify-center" id="httpStream">
<button class="stream-option flex-justify-center flex-align-center http-stream bg-white">
<img class="stream-option-graphic" src="graphics/http-icon.svg" alt="Media server graphic" />
<span class="button-label mt-1 color-accent">HTTP</span>
</button>
<div class="stream-option-title-helper none absolute pt-s">
<p>Play the stream through a media server over HTTP</p>
</div>
</div>
</div>
</div>
<div id="loadingStream" class="selector-option" style="display:none;">
<img class="loader-animation" src="graphics/loader-animation.svg" alt="Animated loading graphic" />
<h3 id="loadingTitle" class="mt-0">Locating stream...</h3>
<div class="stream-message" id="msg"></div>
</div>
</div>
</div>
<script src="js/vendor/video.min.js"></script>
<script src="js/common.js"></script>
</body>
</html>