Skip to content

Getting text tracks immediately after selecting text tracks returns the wrong active track #147

Closed
@sanbornhilland

Description

@sanbornhilland
  1. Call player.selectTextTrack(id) where id is not the currently active track
  2. Immediately call player.getTextTracks()

The result is that in the returned array the track that is set to active=true is the original text track and not the track you tried to set to. NOTE: the text tracks are displaying and switching fine. But it looks like because the text_stream switching function is promise based, it's not guaranteed that right after you select a track it will show as active when you retrieve the array of tracks. This is fine but it doesn't look to me like there is any check you can do to determine that the text_stream.switch() has resolved (no promise is returned and no adaptation event is fired) so you can't be sure when you call getTextTracks it will be accurate.

Metadata

Metadata

Assignees

Labels

status: archivedArchived and locked; will not be updated

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions