Skip to content

Commit

Permalink
fix(player): add playsInline prop on player instance
Browse files Browse the repository at this point in the history
ref #964
  • Loading branch information
mihar-22 committed Oct 29, 2023
1 parent c8b9f3e commit e2ae08e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/vidstack/src/components/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,15 @@ export class MediaPlayer
this._queuePlaysinlineUpdate(inline);
}

@prop
get playsInline() {
return this.playsinline;
}

set playsInline(inline) {
this.playsinline = inline;
}

private _watchPlaysinline() {
this._queuePlaysinlineUpdate(this.$props.playsinline());
}
Expand Down

0 comments on commit e2ae08e

Please sign in to comment.