添加更多演示

This commit is contained in:
Harvey Zack committed 2018-11-24 23:28:51 +08:00
1 parent 7c3f7f2696
commit 32b43ac5db
5 files changed
+147 -1

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
var art = new Artplayer({
container: '.artplayer-app',
url: 'https://dash.akamaized.net/envivio/EnvivioDash3/manifest.mpd',
customType: {
mpd: function(video, url) {
var player = dashjs.MediaPlayer().create();
player.initialize(video, url, true);
},
},
});
+16
View File
@@ -0,0 +1,16 @@
var art = new Artplayer({
container: '.artplayer-app',
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) {
var client = new WebTorrent();
client.add(url, function (torrent) {
var file = torrent.files[0];
file.renderTo(video, {
autoplay: true
})
})
},
},
});