fix: auto puase when leave pip
This commit is contained in:
parent
015932a198
commit
192fd144e8
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue