[go: nahoru, domu]

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

Hiding duration textviews #1486

Closed
Soft-Buddy opened this issue Jun 22, 2024 · 2 comments
Closed

Hiding duration textviews #1486

Soft-Buddy opened this issue Jun 22, 2024 · 2 comments
Assignees
Labels

Comments

@Soft-Buddy
Copy link

image

I'm playing an hls stream from m3u8 url. I wish to hide the duration textviews... If possible

@oceanjules
Copy link
Contributor

I'm assuming you mean, you want to hide the following:

durationView = findViewById(R.id.exo_duration);
positionView = findViewById(R.id.exo_position);

There is currently no programmatic way to do it. However, I wonder if you can override exo_player_control_view.xml with your own layout? And omit the following:

<TextView android:id="@id/exo_position"
style="@style/ExoStyledControls.TimeText.Position"/>
<TextView
style="@style/ExoStyledControls.TimeText.Separator"/>
<TextView android:id="@id/exo_duration"
style="@style/ExoStyledControls.TimeText.Duration"/>

@Soft-Buddy
Copy link
Author

image
Thank you for giving me the directions.

@androidx androidx locked and limited conversation to collaborators Aug 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants