mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 17:01:20 -08:00
url支持返回promise
This commit is contained in:
1 parent
8ffa4174ae
commit
7cdf6ce904
8 files changed
+60
-62
No files matched your search
@@ -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: [
|
||||
|
||||
Reference in new issue
Block a user