Skip to content

Add support for container format sniffing in HLS #2025

@jschm1

Description

@jschm1

For the HLS stream below, ExoPlayer fails to display subtitles:

http://drod05p-vh.akamaihd.net/i/all/clear/download/bd/58049ebc6187a40d7cea30bd/Hammerslag--1-10-_5d30d8de7cab45628de5820ac0d965cc_,309,502,956,2059,2880,.mp4.csmil/master.m3u8?cc1=name=Dansk~default=yes~forced=no~lang=da~uri=https://www.dr.dk/mu/subtitles/playlist/urn:dr:mu:manifest:58049ebc6187a40d7cea30bd?segmentsizeinms=60000%26subtitleType=HardOfHearing

When played in Safari on Mac OS, subtitles are displayed correctly for this stream.

ExoPlayer seems to recognize the available subtiles and lists them in the subtitle-selection-dialog displayed when clicking the "Text" button. However, selecting the subtiles "da, id:Dansk" and clicking "OK" does not activate the subtitles. No errors are printed in logcat.

ExoPlayer version: DemoPlayer 2.0.4
Devices tested: HTC One m9 & HTC 10
Reproducible every time.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions