This is the template project that's checked out and configured when you run the bando-up command from ljsthw-bandolier. This is where the code really lives.
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.
bandolier-template/admin/bando/demos/WTVideo.svelte

36 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>