Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: can not switch subtitle after integrate ffmpeg decoder. #533

Merged
merged 2 commits into from
Aug 2, 2023

Conversation

d4rkk3y
Copy link
Contributor

@d4rkk3y d4rkk3y commented Aug 2, 2023

fix #531 without revert #528

@self-similarity
Copy link
Contributor

🥳

@@ -662,12 +663,7 @@ class CS3IPlayer : IPlayer {

private fun getTrackSelector(context: Context, maxVideoHeight: Int?): TrackSelector {
val trackSelector = DefaultTrackSelector(context)
trackSelector.parameters = DefaultTrackSelector.ParametersBuilder(context)
// .setRendererDisabled(C.TRACK_TYPE_VIDEO, true)
.setRendererDisabled(C.TRACK_TYPE_TEXT, true)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be the culprit and your patch works without the setTrackTypeDisabled
Are there any reasons to have those too?

Copy link
Contributor Author

@d4rkk3y d4rkk3y Aug 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without those two setTrackTypeDisabled when I choose No Subtitles in subtitles selection, player still show subtitle (maybe default subtitle).

@LagradOst LagradOst merged commit c5f6f36 into recloudstream:master Aug 2, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Subtitles not working/ Downloading
3 participants