fix subtitle transcoding, guard play clicks
This commit is contained in:
@@ -1215,7 +1215,7 @@ export default function PlayerPage() {
|
||||
onClick={() => {
|
||||
const p = playerRef.current
|
||||
if (!p) return
|
||||
if (p.paused) p.play()
|
||||
if (p.paused) p.play().catch(() => {})
|
||||
else p.pause()
|
||||
showControls()
|
||||
}}
|
||||
@@ -1640,7 +1640,7 @@ export default function PlayerPage() {
|
||||
onChapterJump={seekToSeconds}
|
||||
onTogglePlay={() => {
|
||||
const p = playerRef.current
|
||||
if (p?.paused) p.play()
|
||||
if (p?.paused) p.play().catch(() => {})
|
||||
else p?.pause()
|
||||
}}
|
||||
onPrevious={() => {
|
||||
|
||||
Reference in New Issue
Block a user