diff --git a/src/lib/device-profile.ts b/src/lib/device-profile.ts index 6ad4f7a..bd59bda 100644 --- a/src/lib/device-profile.ts +++ b/src/lib/device-profile.ts @@ -212,9 +212,16 @@ export function browserDeviceProfile(audioPassthrough = false) { SubtitleProfiles: [ { Format: 'vtt', Method: 'External' }, + { Format: 'vtt', Method: 'Hls' }, { Format: 'subrip', Method: 'External' }, + { Format: 'subrip', Method: 'Embed' }, + { Format: 'subrip', Method: 'Hls' }, { Format: 'ass', Method: 'External' }, + { Format: 'ass', Method: 'Embed' }, + { Format: 'ass', Method: 'Hls' }, { Format: 'ssa', Method: 'External' }, + { Format: 'ssa', Method: 'Embed' }, + { Format: 'ssa', Method: 'Hls' }, ], ResponseProfiles: [], diff --git a/src/pages/PlayerPage.tsx b/src/pages/PlayerPage.tsx index caf5354..65ced00 100644 --- a/src/pages/PlayerPage.tsx +++ b/src/pages/PlayerPage.tsx @@ -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={() => {