Skip to content

How do you reset vtt.js tracks after changing video with player.attachSource() ? #4220

@dsilhavy

Description

@dsilhavy

Discussed in #4219

Originally posted by Eeel-12 July 8, 2023
Hi,

With dash.js 4.7.1 i use player.attachSource(manifest.mpd) to change video on a same page without initializing the whole player, this works fine with customRenderingEnabled: false

With vtt.js enable when switching to another video with player.attachSource(manifest.mpd) the player render the new vtt track and the one from the previous video.

I tried to destroy the player with no luck, after initialize() vtt.js continue to render all the vtt tracks.

How can i "reset" vtt.js before loading a new video with player.attachSource() without re loading the whole player ?

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions