Update README.md

This commit is contained in:
Harvey Zack committed 2019-08-01 17:45:50 +08:00
1 parent 5e03c9b191
commit 2ac43c6c9e
1 file changed
+5 -20
+5 -20
View File
@@ -1243,6 +1243,7 @@ All properties are read only
var url = 'https://zhw2590582.github.io/assets-cdn';
var art = new Artplayer({
container: '.artplayer-app',
autoplay: true,
url: url + '/video/one-more-time-one-more-chance-480p.flv',
customType: {
flv: function(video, url) {
@@ -1255,10 +1256,6 @@ var art = new Artplayer({
},
},
});
art.once('video:canplay', function() {
art.player.play = true;
});
```
## hls.js
@@ -1270,6 +1267,7 @@ art.once('video:canplay', function() {
```js
var art = new Artplayer({
container: '.artplayer-app',
autoplay: true,
url: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8',
customType: {
m3u8: function(video, url) {
@@ -1279,10 +1277,6 @@ var art = new Artplayer({
},
},
});
art.once('video:canplay', function() {
art.player.play = true;
});
```
## dash.js
@@ -1294,6 +1288,7 @@ art.once('video:canplay', function() {
```js
var art = new Artplayer({
container: '.artplayer-app',
autoplay: true,
url: 'https://dash.akamaized.net/envivio/EnvivioDash3/manifest.mpd',
customType: {
mpd: function(video, url) {
@@ -1302,10 +1297,6 @@ var art = new Artplayer({
},
},
});
art.once('video:canplay', function() {
art.player.play = true;
});
```
## shaka-player
@@ -1317,6 +1308,7 @@ art.once('video:canplay', function() {
```js
var art = new Artplayer({
container: '.artplayer-app',
autoplay: true,
url: '//storage.googleapis.com/shaka-demo-assets/angel-one/dash.mpd',
customType: {
mpd: function(video, url) {
@@ -1326,10 +1318,6 @@ var art = new Artplayer({
},
},
});
art.once('video:canplay', function() {
art.player.play = true;
});
```
## webtorrent
@@ -1341,6 +1329,7 @@ art.once('video:canplay', function() {
```js
var art = new Artplayer({
container: '.artplayer-app',
autoplay: true,
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',
@@ -1357,8 +1346,4 @@ var art = new Artplayer({
},
},
});
art.once('video:canplay', function() {
art.player.play = true;
});
```