This is the code that runs https://bandolier.learnjsthehardway.com/ for you to review. It uses the https://git.learnjsthehardway.com/learn-javascript-the-hard-way/bandolier-template to create the documentation for the project.
https://bandolier.learnjsthehardway.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
833 B
35 lines
833 B
<script>
|
|
import WTVideo from "$/client/components/WTVideo.svelte";
|
|
import Icon from "$/client/components/Icon.svelte";
|
|
|
|
let media = {
|
|
"src": "/images/sample_video.mp4",
|
|
"filename": "sample_video.mp4",
|
|
"poster": "/images/sample_image.jpg",
|
|
"preload": "none",
|
|
"torrent_url": "/images/sample_video.mp4.torrent"
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-right: 0.5rem;
|
|
}
|
|
</style>
|
|
|
|
<container class="pattern-lines-sm">
|
|
<WTVideo media={ media } />
|
|
</container>
|
|
|
|
<h1>Instructions</h1>
|
|
|
|
<p>Read the <Icon name="book-open" /> Docs panel for instructions
|
|
on how to get this demo to work on your local computer.</p>
|
|
|
|
<h1>Bugs</h1>
|
|
|
|
<p>The video downloads, but WebTorrent seems to lose track of the last
|
|
chunk. Not sure why but if you know then message me.
|
|
</p>
|
|
|