Skip to content

Commit

Permalink
fix(player): initialize playsinline correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
mihar-22 committed Sep 30, 2023
1 parent dbfba53 commit a73b537
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/vidstack/src/providers/html/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ export class HTMLMediaProvider implements MediaProviderAdapter {
setup(context: MediaSetupContext) {
new HTMLMediaEvents(this, context);
if ('audioTracks' in this.media) new NativeAudioTracks(this, context);

this.playsinline = context.$state.playsinline();

onDispose(() => {
this._media.setAttribute('src', '');
this._media.load();
Expand Down

0 comments on commit a73b537

Please sign in to comment.