videojs-transcript
videojs-transcript copied to clipboard
How to destroy videojs-transcript?
I am using videojs-transcript with videojs-playlist and videojs-playlist-ui.
It's has been pretty fiddly getting it working, I think I am close, but as playlists (audio playlists for example) sometime don't require the transcript plugin, I think i need to remove the transcript plugin before switching playlists, else I get the error:
Uncaught TypeError: Cannot read property 'activeCues' of undefined
How can it be removed when it is not required?
Thank You.
Update: I think (still need to test more) I resolved this by using dispose()
on the player, and resetting all html, videojs and videojs plugins back up whenever I changed a playlist.
I'm curious if you ever got this working. I'm not using playlists and run into this same error by simply including the script and calling it in the player.