mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-07 08:07:18 +02:00
Fix dispatching STREAM_PLAYING event when playing normal video
This commit is contained in:
parent
ebb4d3c141
commit
00ebb3f672
@ -35,11 +35,11 @@ export function patchVideoApi() {
|
|||||||
return nativePlay.apply(this);
|
return nativePlay.apply(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!!this.src) {
|
const $parent = this.parentElement!!;
|
||||||
return nativePlay.apply(this);
|
// Video tag is stream player
|
||||||
}
|
if (!this.src && $parent.dataset.testid === 'media-container') {
|
||||||
|
|
||||||
this.addEventListener('playing', showFunc);
|
this.addEventListener('playing', showFunc);
|
||||||
|
}
|
||||||
|
|
||||||
return nativePlay.apply(this);
|
return nativePlay.apply(this);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user