mirror of
https://github.com/seigler/HLS-over-IPFS-video-player
synced 2025-07-27 09:46:12 +00:00
first version
This commit is contained in:
commit
f5e7c9abbf
17 changed files with 169594 additions and 0 deletions
1
dist/index.html
vendored
Normal file
1
dist/index.html
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>HLS over IPFS video player</title><link rel="icon" href="/favicon.e7ae9020.ico"><style>*{box-sizing:border-box}body,html{margin:0;padding:0}body{align-items:center;background-color:#000;color:#fff;display:flex;font-family:sans-serif;height:100vh;justify-content:center}code{white-space:nowrap}#status{bottom:100%;font-size:2em;height:3ex;left:0;margin-bottom:-3ex;position:fixed;text-align:center;transition:transform .3s ease 1s;width:100%}.is-hiding{transform:translateY(-3ex)}#video{display:none;height:100%;width:100%}#help{max-width:80ch;padding:5em}</style><script defer src="/index.199f11ff.js"></script></head><body> <video id="video" controls autoplay></video> <div id="status"></div> <section id="help"> <h1>HLS over IPFS video player</h1> <p>This is a tool for viewing videos encoded as <a href="https://github.com/ipfs-examples/js-ipfs-examples/tree/master/examples/browser-video-streaming">HLS</a>. The folder containing this playlist and all its files is uploaded to IPFS, and the hash is provided in the URL as a parameter.</p> <pre>?hash=QmYzdc44xBkVgp8aWJW57KprjDs5j2hmN8g7eDqm5pvY8L</pre> <p>It also accepts parameters for <code>source</code> filename (default is <code>master.m3u8</code>) and <code>title</code>. </p> <p>Given at least a valid hash, it should play a video in the browser using <a href="https://github.com/ipfs/js-ipfs">JS-IPFS</a> to connect directly to the IPFS network.</p> <noscript> <p><strong>Since your browser is not executing JavaScript, none of this will work.</strong></p> </noscript> </section> </body></html>
|
Loading…
Add table
Add a link
Reference in a new issue