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

How to disable subtitles initially #31

Open
jjfster opened this issue Jun 29, 2024 · 0 comments
Open

How to disable subtitles initially #31

jjfster opened this issue Jun 29, 2024 · 0 comments

Comments

@jjfster
Copy link

jjfster commented Jun 29, 2024

I was able to do this outside this project, but don't see a way to do it inside.

With straight exoPlayer, I was able to set the track selector, but can't get to this inside the explayer instance in this project:

`val trackSelector = DefaultTrackSelector(LocalContext.current).apply {
setParameters(buildUponParameters().setTrackTypeDisabled
(
C.TRACK_TYPE_TEXT, true
)
.setRendererDisabled
(
C.TRACK_TYPE_TEXT, true
)

    )

}
val exoPlayer = remember {

    ExoPlayer.Builder(context
    )
        .setTrackSelector(trackSelector)`

Can someone assist please?

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

No branches or pull requests

1 participant