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