psvideo: prevent illegal play attempts
Signed-off-by: Varun Patil <varunpatil@ucla.edu>pull/563/head
parent
148f0a6ee1
commit
a4785efcdc
|
@ -227,7 +227,7 @@ class VideoContentSetup {
|
|||
});
|
||||
|
||||
setTimeout(() => {
|
||||
content.videojs.play(); // iOS needs this
|
||||
content.videojs?.play(); // iOS needs this
|
||||
}, 200);
|
||||
|
||||
let canPlay = false;
|
||||
|
@ -292,7 +292,7 @@ class VideoContentSetup {
|
|||
}
|
||||
|
||||
initPlyr(content: VideoContent) {
|
||||
if (content.plyr) return;
|
||||
if (content.plyr || !content.videojs || !content.element) return;
|
||||
|
||||
content.videoElement = content.videojs?.el()?.querySelector("video");
|
||||
if (!content.videoElement) return;
|
||||
|
|
Loading…
Reference in New Issue