Skip to content

Question: Reset Cues for Text Track #5797

@richardbushell

Description

@richardbushell

Hi, is there any way/method to reset the CUES in an existing text track?
I have a JavaScript Variable Reference to the Text Track itself, and I can change the track's SRC value, but this does not force or trigger a reset of the existing cues. I'd like to clear the existing cues and add the new ones from the revised SRC.

I am dynamically changing the video source on the same player, and also changing the poster, and that's working fine to play different videos from the same instance, but I'd really like to dynamically overwrite/reset the cues on the existing track too. I can't see a method for this in the API? (p.s. I'd rather not remove and add tracks as we tie in with a third-party plugin to display thumbnails). If the cues auto-updated when we changed the track SRC, or if there was a reset/refresh cues method then our dynamic switching of videos would be sorted.

Please advise if there's a way of doing this??? p.s. It's an EMULATED and HIDDEN Text Track containing Metadata.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions