Video.js reuse ID - destroy()

13,422

Latest video.js version exposes dispose method instead. Check your updated example. Working fine for me.

Share:
13,422
bradley
Author by

bradley

Updated on June 17, 2022

Comments

  • bradley
    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.

    http://jsfiddle.net/w3JPB/3/

    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()