Fix up the video demos so they work on the main site, and also give people instructions for getting them working locally.
parent
f72d59ab92
commit
2f6b013838
@ -1,10 +1,22 @@ |
|||||||
<script> |
<script> |
||||||
import HLSVideo from "$/client/components/HLSVideo.svelte"; |
import HLSVideo from "$/client/components/HLSVideo.svelte"; |
||||||
let source = "https://learnjsthehardway.com/media/sample_video.mp4"; |
import Icon from "$/client/components/Icon.svelte"; |
||||||
let poster = "https://learnjsthehardway.com/media/sample_image.jpg"; |
let source = "/images/sample_video.mp4"; |
||||||
|
let poster = "/images/sample_image.jpg"; |
||||||
let video_background = "rgba(0,0,0,0)"; |
let video_background = "rgba(0,0,0,0)"; |
||||||
</script> |
</script> |
||||||
|
|
||||||
<container class="pattern-lines-sm"> |
<container class="pattern-lines-sm"> |
||||||
<HLSVideo poster={ poster } background_color={video_background } source={ source } starts_on={ new Date(Date.now() + 10000) } /> |
<HLSVideo poster={ poster } background_color={video_background } source={ source } starts_on={ new Date(Date.now() + 10000) } /> |
||||||
</container> |
</container> |
||||||
|
|
||||||
|
<h1>Instructions</h1> |
||||||
|
|
||||||
|
<p>To get this demo to work you should get the |
||||||
|
<a href="/client/#/bando/components/WTVideo/">WTVideo</a> demo working. |
||||||
|
This demo will have you create a sample image and sample video that |
||||||
|
the <code>HLSVideo</code> uses as well. If you don't have access to |
||||||
|
the <code>mktorrent</code> command mentioned in the |
||||||
|
<a href="/client/#/bando/components/WTVideo/">WTVideo</a> demo then |
||||||
|
just skip that part and as long as you have the samples in place |
||||||
|
the <code>HLSVideo</code> demo will work. </p> |
||||||
|
Loading…
Reference in new issue