mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-05 20:58:27 +02:00
Bind the callback so that this code works on Fire/Waterfox too (#745)
This commit is contained in:
@@ -27,7 +27,7 @@ export abstract class BaseCanvasPlayer extends BaseStreamPlayer {
|
||||
const $video = this.$video;
|
||||
frameCallback = $video.requestVideoFrameCallback.bind($video);
|
||||
} else {
|
||||
frameCallback = requestAnimationFrame;
|
||||
frameCallback = window.requestAnimationFrame.bind(window);
|
||||
}
|
||||
|
||||
this.frameCallback = frameCallback;
|
||||
|
Reference in New Issue
Block a user