The initial HTMLVideoElement is replaced by a new one on IOS #8993
Closed
hebrerillo
started this conversation in
General
Replies: 1 comment 2 replies
-
Take a look at the "player div ingest" section here: https://videojs.com/guides/embeds/#player-div-ingest |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello there!
On IOS, the initial HTMLVideoElement that is used to create the instance of Player is replaced by a another new HTMLVideoElement.
See this example code:
const videoJS = videojs(videoElement);
videoJS.on('loadeddata', () => {
console.log(videoElement === videoJS.el().querySelector("video"));
videoJS.play();
});
videoJS.load();
On Firefox and Chrome, the log outputs true. However, on IOS(Safari) the output is false.
Is there any option to pass to videojs so that on IOS it does not replace the initial HTMLVideoElement??
I really need that initial HTMLVideoElement.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions