From 414bc2268e12f4166c36caf0262f8ff889d096c8 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Sat, 6 Apr 2024 16:54:41 +0700 Subject: [PATCH] Fix emitting "playing" event on normal videos --- better-xcloud.user.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/better-xcloud.user.js b/better-xcloud.user.js index 3e1d588..aa002c6 100644 --- a/better-xcloud.user.js +++ b/better-xcloud.user.js @@ -11128,6 +11128,10 @@ function patchVideoApi() { return nativePlay.apply(this); } + if (!!this.src) { + return nativePlay.apply(this); + } + this.addEventListener('playing', showFunc); injectStreamMenuButtons();