You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to destroy a YouTube instance and then restore it, but it doesn't seem to work. The docs do not mention that these methods wouldn't work for YouTube as well.
Hi,
I'm trying to destroy a YouTube instance and then restore it, but it doesn't seem to work. The docs do not mention that these methods wouldn't work for YouTube as well.
My HTML is
<div data-type="youtube" data-video-id="12345"></div>
and js
In the docs it says
When I call
videos[0].plyr.destroy()
it doesn't restore the original HTML, though I don't know if it should.But when I call
videos[0].plyr.restore()
it gives me an error:Uncaught TypeError: Cannot set property 'buffered' of undefined
I made a fiddle: https://jsfiddle.net/f1hc53cq/2/
Is there something I'm doing wrong?
Thanks for any help,
Daniel
The text was updated successfully, but these errors were encountered: