Baseflow / Baseflow/XamarinMediaManager

Disable subtitles from HLS stream

Open
#679 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C#
Stars
763
Forks
299
PR merge metrics
No merged PRs in 30d

Description

## 💬 Questions and Help

How do you disable subtitles from a HLS video stream you open from a m3u8-playlist that includes subtitles?
Excerpt from m3u8-playlist:
#EXT-X-STREAM-INF:CODECS="avc1.4d401f,mp4a.40.2",BANDWIDTH=2770755,RESOLUTION=960x540,AUDIO="aac",SUBTITLES="subtitles"
0d20364d-74d7-4d1f-a15a-66777ce7d524_HLS/game.m3u8

In exoplayer you should be able to do this by doing somthing like:
trackSelector.setRendererDisabled(TRACK_TEXT, true);
trackSelector.clearSelectionOverrides();

For questions or help we recommend checking:

- The [Xamarin tag in Stack Overflow](https://stackoverflow.com/questions/tagged/xamarin)
- The [General slack channel in the Xamarin Slack](https://xamarinchat.herokuapp.com/)
- Ask your question in the [Xamarin Forums](https://forums.xamarin.com/)

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start by tracing how the Xamarin plugin handles HLS m3u8 subtitle tracks and how its ExoPlayer integration exposes track selection; compare that with the requested renderer-disable and selection-override behavior. Done means a clearly defined way to open the stream with subtitles disabled, covered by an appropriate test if the project supports one.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.