mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 23:51:20 -08:00
修复异步切换画质bug
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user