Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to destroy videojs-transcript? #16

Open
oshihirii opened this issue Feb 11, 2017 · 2 comments
Open

How to destroy videojs-transcript? #16

oshihirii opened this issue Feb 11, 2017 · 2 comments

Comments

@oshihirii
Copy link

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
Copy link
Author

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.

@npstcole
Copy link

npstcole commented Nov 3, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants