From 3d0a935ba12aa4e23a42994d153ef4b8843f3f3b Mon Sep 17 00:00:00 2001 From: Harvey Zack Date: Sun, 25 Nov 2018 00:11:41 +0800 Subject: [PATCH] Update webtorrent.js --- docs/lab/js/webtorrent.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/lab/js/webtorrent.js b/docs/lab/js/webtorrent.js index 57f646149..2fbacd5a9 100644 --- a/docs/lab/js/webtorrent.js +++ b/docs/lab/js/webtorrent.js @@ -3,8 +3,9 @@ var art = new Artplayer({ url: 'magnet:?xt=urn:btih:6a9759bffd5c0af65319979fb7832189f4f3c35d&dn=sintel.mp4&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&tr=wss%3A%2F%2Ftracker.webtorrent.io&ws=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2Fsintel-1024-surround.mp4', type: 'torrent', customType: { - torrent: function (video, url) { + torrent: function (video, url, art) { var client = new WebTorrent(); + art.loading.show(); client.add(url, function (torrent) { var file = torrent.files[0]; file.renderTo(video, {