video: prevent closing when video fullscreen
parent
65f8a4bc4c
commit
b5bdc0b0bf
|
@ -112,6 +112,14 @@ class VideoContentSetup {
|
||||||
this.destroyVideo(pswp.currSlide.content);
|
this.destroyVideo(pswp.currSlide.content);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Prevent closing when video fullscreen is active
|
||||||
|
pswp.on("pointerMove", (e) => {
|
||||||
|
const plyr: Plyr = (<any>pswp.currSlide.content)?.plyr;
|
||||||
|
if (plyr?.fullscreen.active) {
|
||||||
|
e.preventDefault();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getHLSsrc(content: any) {
|
getHLSsrc(content: any) {
|
||||||
|
|
Loading…
Reference in New Issue