mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 05:41:20 -08:00
add errorHandle
This commit is contained in:
1 parent
19a2636ea9
commit
b74ff6052c
4 files changed
+23
-18
No files matched your search
+1
-6
@@ -14,11 +14,6 @@ export default class Player {
|
||||
$video.volume = clamp(option.volume, 0, 1);
|
||||
$video.autoplay = option.autoplay;
|
||||
$video.preload = option.preload;
|
||||
|
||||
if (typeof option.url === 'string') {
|
||||
$video.src = option.url;
|
||||
} else if (Array.isArray(option.url)) {
|
||||
//
|
||||
}
|
||||
$video.src = option.url;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user