fix: auto puase when leave pip

This commit is contained in:
codytseng
2025-04-13 14:35:12 +08:00
parent 015932a198
commit 192fd144e8

View File

@@ -6,6 +6,9 @@ class VideoManagerService {
constructor() {
if (!VideoManagerService.instance) {
VideoManagerService.instance = this
document.addEventListener('leavepictureinpicture', (e) => {
;(e.target as HTMLVideoElement).pause()
})
}
return VideoManagerService.instance
}