Closed ashinojiya closed 1 year ago
The options object looks OK, assuming you're using v3.0.0-beta - but note that the randomizeSegmentColor
option has been removed. I don't recognise the video element #target
attribute, though.
What does console.log(document.getElementById('videjsEle'))
output?
The options object looks OK, assuming you're using v3.0.0-beta - but note that the
randomizeSegmentColor
option has been removed. I don't recognise the video element#target
attribute, though.What does
console.log(document.getElementById('videjsEle'))
output?
It gives video element
Thank you. But, that's a <div>
and not a <video>
element. I assume the actual <video>
is somewhere inside the <div>
.
Ohh okay, I found the video element in it and with that its working fine. Thank you :)
In my project, I am using videojs librabry (https://videojs.com/) to display video and with that I want to use peak.js to display waveform. For this I have created the video tag and pass the id of the element to mediaElement property but its not loading the waveform and giving the error The mediaElement option should be an HTMLMediaElement.
Video element
Peaks options
Please let me know if anything I am wrong in this.