Skip to content

Commit

Permalink
Update use-player.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyBurger committed Feb 13, 2025
1 parent 3c3d4dd commit 4f342bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/player/src/use-player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ export const usePlayer = (): UsePlayerMethods => {
* Play audios and videos directly here so they can benefit from
* being triggered by a click
*/
audioAndVideoTags.current.forEach((a) => a.play());
audioAndVideoTags.current.forEach((a) =>
a.play('player play() was called and playing audio from a click'),
);

imperativePlaying.current = true;
setPlaying(true);
Expand Down

0 comments on commit 4f342bb

Please sign in to comment.