url支持返回promise

This commit is contained in:
Harvey Zack committed 2018-12-08 01:33:09 +08:00
1 parent 8ffa4174ae
commit 7cdf6ce904
8 files changed
+60 -62

No files matched your search

+5 -1
View File
@@ -17,7 +17,11 @@
var art = new Artplayer({
container: '.artplayer',
url: 'https://blog.zhw-island.com/assets-cdn/video/one-more-time-one-more-chance-480p.mp4',
url: function () {
return new Promise(function (resolve) {
resolve('https://blog.zhw-island.com/assets-cdn/video/one-more-time-one-more-chance-480p.mp4');
});
},
title: '【新海诚动画】『秒速5センチメートル』',
autoSize: true,
controls: [