🎥 Make videos programmatically with React
Update use-player.ts
Jonny Burger4f342bb55ff6
diff --git a/packages/player/src/use-player.ts b/packages/player/src/use-player.tsindex 1dda06a635..4482b0c81d 100644--- a/packages/player/src/use-player.ts+++ b/packages/player/src/use-player.ts@@ -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);