Skip to content

Commit

Permalink
Merge pull request #16 from Prodeko/multiplatform-playback
Browse files Browse the repository at this point in the history
Set Hls.js autoplay
  • Loading branch information
aksun1 authored Oct 26, 2024
2 parents 53795dc + 0b6c444 commit ac2dc73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ const App = () => {
newHls.attachMedia(videoCurrent);
newHls.on(Hls.Events.MEDIA_ATTACHED, () => {
newHls.loadSource(url);
videoCurrent.muted = true;
videoCurrent.play();
});
} else if (
videoCurrent.canPlayType("application/vnd.apple.mpegurl") ===
Expand Down

0 comments on commit ac2dc73

Please sign in to comment.