Skip to content

Closed Captions in Media3 #2969

@zhoushsong

Description

@zhoushsong

The Closed Caption track cannot be read in Media3 Player.
Could you please check what the issue is?

Using this method, I can only read the audio and video tracks

 Tracks xx =  player.getCurrentTracks();
        for (int i = 0; i < xx.getGroups().size(); i++) {
            int trackType = xx.getGroups().get(i).getMediaTrackGroup().type;
            if (trackType == C.TRACK_TYPE_TEXT) {
                textTrackGroups.add(xx.getGroups().get(i).getMediaTrackGroup());
            }
        }

Below is the video link.
http://www.melodvb.com/test/cc.mp4

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions