Skip to content

New subtitle transcoding feature loads all subtitles when initialising #1721

Closed
@TheBeastLT

Description

@TheBeastLT

Version

Media3 1.4.1

More version details

No response

Devices that reproduce the issue

Any device

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Yes

Reproduction steps

With the version 1.4.1 the experimentalSetTextTrackTranscodingEnabled feature is enabled by default and it introduces behaviour that is not expected and was not there before. With it enabled the player loads each and every subtitle configuration that is defined for the MediaItem even if it is not selected. There can be uses cases where these subtitles configuration are remote urls and there can be many of them for different languages, so loading all of them when initialising the media item is not efficient and introduces delay when the item is played. Ideally only the selected subtitle should be transcoded, as was the behaviour before with remote urls - it would get downloaded only when it was selected.

Expected result

Not all subtitle configuration are loaded when MediaItem is initialized

Actual result

All subtitles configuration are loaded (and in case of remote urls - are downloaded)

Media

Any

Bug Report

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions