Skip to content

Commit 5b33c7a

Browse files
committed
fix(player): watch supported check correctly in remote playback
1 parent 4f76cbc commit 5b33c7a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/vidstack/src/providers/video/remote-playback.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ export abstract class VideoRemotePlaybackAdapter implements MediaRemotePlaybackA
3838
}
3939

4040
private _watchSupported() {
41+
if (!this._supported()) return;
42+
4143
const events = ['connecting', 'connect', 'disconnect'],
4244
onStateChange = this._onStateChange.bind(this);
4345

0 commit comments

Comments
 (0)