Skip to content

Commit

Permalink
fix(player): keep js constructed player alive
Browse files Browse the repository at this point in the history
  • Loading branch information
mihar-22 committed Mar 26, 2024
1 parent a95bc45 commit 5f5cae1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vidstack/src/global/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ export class VidstackPlayer {
isTargetContainer =
!isHTMLAudioElement(target) && !isHTMLVideoElement(target) && !isHTMLIFrameElement(target);

player.setAttribute('keep-alive', '');

if (layout) {
if (!layout[LAYOUT_LOADED]) {
await layout.load();
Expand Down

0 comments on commit 5f5cae1

Please sign in to comment.