videojs-transcript icon indicating copy to clipboard operation
videojs-transcript copied to clipboard

How to destroy videojs-transcript?

Open oshihirii opened this issue 8 years ago • 2 comments

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.

oshihirii avatar Feb 11 '17 10:02 oshihirii

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.

oshihirii avatar Feb 11 '17 12:02 oshihirii

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.

npstcole avatar Nov 03 '17 19:11 npstcole