I have added several cues to a video using popcorn JS.
How do I remove or modify a specific cue?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Once you’ve added a cue to your Popcorn instance, you can remove it the same way you remove any plugin event, with the
removeTrackEventmethod.The trick is getting the id of the event you want to remove. Popcorn doesn’t really provide an easy way to search for track events, so you’ll want to get the id and hold on to it at the time the event is created.
The Popcorn API was originally designed to be chainable, so the
cuemethod returns the Popcorn instance. That’s why you need the separate call togetLastTrackEventId.If you want to modify a cue, it depends on whether you want to take the same function and move it…
Or change the function: