Video.js reuse ID - destroy()
13,422
Latest video.js version exposes dispose
method instead. Check your updated example. Working fine for me.
Author by
bradley
Updated on June 17, 2022Comments
-
bradley almost 2 years
I'm retrieving my video source using ajax. All works fine unless I try to retrieve and play the same video twice.
You will notice that the second time you click "add" video.js doesn't work and the plain default html5 video player is shown.
It seems like I need to destroy the old video object but method described here gives me an error saying "object has no method destroy".
_V_('video1').destroy()