Skip to content

Commit

Permalink
fix(docs): Fixing copy-paste example to include script.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeal committed Sep 25, 2017
1 parent 7236db6 commit 693b07f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Here's some example code you can stick your application to get started. It
loads and plays a Creative Commons video.

```html
<script src="https://cdn.jsdelivr.net/npm/webtorrent-component@latest/dist/webtorrent-component.min.js"></script>
<web-torrent src="magnet:?xt=urn:btih:08ada5a7a6183aae1e09d831df6748d566095a10&dn=Sintel&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&ws=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2F&xs=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2Fsintel.torrent"
file="Sintel.mp4"
/>
Expand Down
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
margin: 0 0 0 0;
padding: 10px 10px 10px 10px;
}
web-torrent video {
width: 90vw
}
</style>
</head>
<body class="body">
Expand Down

0 comments on commit 693b07f

Please sign in to comment.