Skip to content

Commit

Permalink
fix(player): prevent blocking native embed controls
Browse files Browse the repository at this point in the history
  • Loading branch information
mihar-22 committed Jul 2, 2024
1 parent 60ba0b9 commit 6da5bfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vidstack/src/elements/define/provider-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class MediaProviderElement extends Host(HTMLElement, MediaProvider) {
const { nativeControls, viewType } = this._media.$state,
showNativeControls = nativeControls(),
isAudioView = viewType() === 'audio',
showBlocker = showNativeControls && !isAudioView;
showBlocker = !showNativeControls && !isAudioView;

if (showBlocker) {
this._blocker = this.querySelector('.vds-blocker');
Expand Down

0 comments on commit 6da5bfc

Please sign in to comment.