Skip to content

Commit

Permalink
allow audio on ios with play interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
monoxane committed Mar 12, 2023
1 parent 6ae350b commit 82fb690
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/src/JSmpegPlayer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ const JSmpegPlayer = ({ url, active }) => {

return (
<div
onClick={() => {
player.player.isPlaying ? player.player.pause() : player.player.play()
}}
className="probePlayer"
ref={videoRef}>
</div>
Expand Down

0 comments on commit 82fb690

Please sign in to comment.