publish: fix: bugs

generated from commit c853faf3ca
This commit is contained in:
Joshua Seigler 2021-11-30 10:46:56 -05:00
parent 29ba54a401
commit 3f64ffa110
3 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
<!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;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}pre{background-color:#ffffff1f;overflow:auto;padding:.5em}#contextMenu{background-color:#2f2f2faf;color:#fff;position:sticky;width:20em}#contextMenu>div{border:1px solid #0000007f;cursor:pointer;padding:.5em}#contextMenu>div+div{border-top:none}#contextBackground{bottom:0;height:100%;position:fixed;right:0;width:100%}.is-hidden{display:none}</style><script defer src="index.ed2f3c79.js"></script></head><body> <video id="video" controls controlslist="nodownload" autoplay></video> <div id="status"></div> <div class="is-hidden" id="contextBackground"> <div id="contextMenu"> <div id="contextMenu-url">Copy video URL</div> <div id="contextMenu-urlWithTime">Copy video URL at current time</div> </div> </div> <section id="help"> <h1>HLS over IPFS video player</h1> <h2 id="how-to-use"> <a class="anchor" href="#how-to-use"></a>How to use: </h2> <p>Accepts three query parameters:</p> <ul> <li> <code>hash</code>: required. The IPFS hash of a folder containing an HLS playlist and its files. </li> <li> <code>source</code>: optional, defaults to <code>master.m3u8</code>. </li> <li> <code>title</code>: optional, allows overriding the browser tab title. </li> <li><code>time</code>: optional, start the video at this many seconds</li> </ul> <h2 id="usage-examples"> <a class="anchor" href="#usage-examples"></a>Usage Examples: </h2> <ul> <li> <a href="https://ipfsvideo.cc/?hash=QmdpAidwAsBGptFB3b6A9Pyi5coEbgjHrL3K2Qrsutmj9K&title=Big%20Buck%20Bunny">Big Buck Bunny</a> </li> <li> <a href="https://ipfsvideo.cc/?hash=QmYzdc44xBkVgp8aWJW57KprjDs5j2hmN8g7eDqm5pvY8L&title=What+is+the+Royal+Path%3F+-+Royal+Path+001">What is the Royal Path? - Royal Path 001</a> </li> </ul> <h2 id="how-to-make-compatible-videos"> <a class="anchor" href="#how-to-make-compatible-videos"></a>How to make compatible videos: </h2> <p> Here is a Bash script you can use to encode a video into a HLS folder with a playlist: </p> <pre>#!/usr/bin/env bash <!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;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}pre{background-color:#ffffff1f;overflow:auto;padding:.5em}#contextMenu{background-color:#2f2f2faf;color:#fff;position:sticky;width:20em}#contextMenu>div{border:1px solid #0000007f;cursor:pointer;padding:.5em}#contextMenu>div+div{border-top:none}#contextBackground{bottom:0;height:100%;position:fixed;right:0;width:100%}.is-hidden{display:none}</style><script defer src="index.6b10736e.js"></script></head><body> <video id="video" controls controlslist="nodownload" autoplay></video> <div id="status"></div> <div class="is-hidden" id="contextBackground"> <div id="contextMenu"> <div id="contextMenu-url">Copy video URL</div> <div id="contextMenu-urlWithTime">Copy video URL at current time</div> </div> </div> <section id="help"> <h1>HLS over IPFS video player</h1> <h2 id="how-to-use"> <a class="anchor" href="#how-to-use"></a>How to use: </h2> <p>Accepts three query parameters:</p> <ul> <li> <code>hash</code>: required. The IPFS hash of a folder containing an HLS playlist and its files. </li> <li> <code>source</code>: optional, defaults to <code>master.m3u8</code>. </li> <li> <code>title</code>: optional, allows overriding the browser tab title. </li> <li><code>time</code>: optional, start the video at this many seconds</li> </ul> <h2 id="usage-examples"> <a class="anchor" href="#usage-examples"></a>Usage Examples: </h2> <ul> <li> <a href="https://ipfsvideo.cc/?hash=QmdpAidwAsBGptFB3b6A9Pyi5coEbgjHrL3K2Qrsutmj9K&title=Big%20Buck%20Bunny">Big Buck Bunny</a> </li> <li> <a href="https://ipfsvideo.cc/?hash=QmYzdc44xBkVgp8aWJW57KprjDs5j2hmN8g7eDqm5pvY8L&title=What+is+the+Royal+Path%3F+-+Royal+Path+001">What is the Royal Path? - Royal Path 001</a> </li> </ul> <h2 id="how-to-make-compatible-videos"> <a class="anchor" href="#how-to-make-compatible-videos"></a>How to make compatible videos: </h2> <p> Here is a Bash script you can use to encode a video into a HLS folder with a playlist: </p> <pre>#!/usr/bin/env bash
outdir=${1%.*} outdir=${1%.*}
mkdir &quot;$outdir&quot; mkdir &quot;$outdir&quot;
pushd &quot;$outdir&quot; pushd &quot;$outdir&quot;