add errorHandle

This commit is contained in:
Harvey Zack committed 2018-10-12 12:33:50 +08:00
1 parent 19a2636ea9
commit b74ff6052c
4 files changed
+23 -18

No files matched your search

+1 -6
View File
@@ -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;
}
}