We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9187df0 commit e6a3fb4Copy full SHA for e6a3fb4
1 file changed
packages/vidstack/src/components/player.ts
@@ -194,7 +194,10 @@ export class MediaPlayer
194
context,
195
);
196
197
- new NavigatorMediaSession();
+ if ('mediaSession' in navigator) {
198
+ new NavigatorMediaSession();
199
+ }
200
+
201
new MediaLoadController('load', this.startLoading.bind(this));
202
new MediaLoadController('posterLoad', this.startLoadingPoster.bind(this));
203
}
0 commit comments