修复异步切换画质bug

This commit is contained in:
Harvey Zack committed 2018-11-28 13:56:41 +08:00
1 parent 946a2da8a9
commit 2f1e7a0b55
6 files changed
+31 -34

No files matched your search

@@ -15,7 +15,7 @@ export default function attachUrlMix(art, player) {
value: url => {
const typeName = type || getExt(url);
const typeCallback = customType[typeName];
sleep().then(() => {
return sleep().then(() => {
if (typeName && typeCallback) {
art.emit('beforeCustomType', typeName);
typeCallback($video, player.returnUrl(url), art);