androidx / androidx/media

[CAST] Support track selection overrides via setActiveMediaTracks

Open
#509 6 comments 1 reaction 1 assignee View on GitHub

@tonihei is already working on this.

Since Jul 10, 2023.

enhancement
Dominant language
Java
Stars
3k
Forks
955
Avg merge
12d 14h
Merged PRs (30d)
2

Description

Hello,

I encounter a problem with support for subtitles that I was able to reproduce while using the angel-one-hls file of the demo-cast app. I can be reproduce it on the remoteless Chromecast devices to and TVs with built-in cast devices.

While using the app player the subtitles are automatically visible, but when I've switched the player to Cast the captions are not available and can't be turned on.
The metioned HLS file contains information about the subtitles
#EXT-X-MEDIA:TYPE=SUBTITLES,URI="playlist_s-en.webvtt.m3u8",GROUP-ID="default-text-group",LANGUAGE="en",NAME="stream_0",DEFAULT=YES,AUTOSELECT=YES

I was even trying to manually add the subtitles button to the controls but still had no luck with enabling the subtitles on that cast device.

So my questions are:

  1. What's the status of supporing the subtitles control on the cast player?
  2. Are there any tips or examples of how to make it work?
  3. If support is not implemented at the moment, are there any workarounds to force this captions control?

As I'm able to turn on the captions using the Chromecast 4 remote, I understand that receiver app supports the captions in hls files but media3 is not supporting controling it from Player View controls.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.