Skip to content

Commit

Permalink
Try IOS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluesmile82 committed Nov 13, 2024
1 parent a445f8f commit 12d2719
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/video-player/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const VideoPlayer = ({
const player = (playerRef.current = videojs(videoElement, {
autoplay: true,
responsive: true,
playsInline: true,
fluid,
muted: true,
loop: true,
Expand Down Expand Up @@ -68,6 +69,7 @@ export const VideoPlayer = ({
player.on("timeupdate", (e: SyntheticEvent<HTMLVideoElement>) => {
onTimeUpdate && onTimeUpdate(e);
});
player.play();
}

return () => {
Expand Down

0 comments on commit 12d2719

Please sign in to comment.