-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
chore(android): update UI controller according to media3 #3914
base: master
Are you sure you want to change the base?
chore(android): update UI controller according to media3 #3914
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like you didn't merge conflicts correctly (around drm props and allowchunklesspreparation. Can you please check that ?
I would like to test it afterward
Hi @seyedmostafahasani. Can you also add a screenshot of the new UI here? I would like to see what it looks like now ) |
@bulkinav thanks for your suggestion. I think it is better to implement the basics of the UI first, then we can implement the screenshot feature in the future in a new PR. |
@freeboub I think we can remove the |
android/src/main/java/com/brentvatne/exoplayer/FullScreenPlayerView.java
Outdated
Show resolved
Hide resolved
@freeboub, if everything works correctly, please don’t merge this branch to master yet. First, let me remove the additional code, then we can merge this branch to master. |
@freeboub, did you have enough time to test this PR? |
I've tried this version of UI with a video that has captions and multiple audio options Does the new UI have the ability to show a textTracks selection menu? I could not see a way to turn on / off captions The audio selection menu also appears buggy, as it repeats the options twice |
@ashnfb Yeah, it's possible to show the caption button in the new UI. I added it. Please check it out. |
@ashnfb regarding the audio selection menu, I think this URL has an issue: |
Just tested, I found 2 issues fo now:
|
@JerakRus |
I tested it and now it works, thanks for the work done! |
@freeboub @KrzysztofMoch |
# Conflicts: # android/src/main/java/com/brentvatne/common/api/ControlsConfig.kt # android/src/main/java/com/brentvatne/exoplayer/ExoPlayerView.java # android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java # docs/pages/component/props.mdx
# Conflicts: # android/src/main/java/com/brentvatne/exoplayer/ExoPlayerView.java # android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java
@seyedmostafahasani I would like to focus on this PR for my next task, can you please remerge with master ? |
Thanks @freeboub . |
# Conflicts: # android/src/main/java/com/brentvatne/common/api/ControlsConfig.kt # android/src/main/java/com/brentvatne/exoplayer/FullScreenPlayerView.kt # android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java # docs/pages/component/props.mdx # src/specs/VideoNativeComponent.ts # src/types/video.ts
@freeboub |
@seyedmostafahasani following text is presented twice in the doc and is not true anymore, can you please have a look to this point ? On iOS, this displays the video in a fullscreen view controller with controls. |
sorry @seyedmostafahasani but we cannot merge this PR as is. On new version there is a remaining black square (I think it is the shutterView) during content change |
Another video with a 'normal' usage, We also see strange resizing during navigation, please see the video: If we want to progress with this PR, I think we should split it in sub PRs, maybe move in another PR the new features would be a good first step. (showSubtitleButton and showSettingButton) |
I am checking it. |
# Conflicts: # android/src/main/java/com/brentvatne/exoplayer/FullScreenPlayerView.kt
@freeboub |
@seyedmostafahasani No sorry, no time to test for now. I'll do it soon ! |
@@ -7,6 +7,8 @@ class ControlsConfig { | |||
var hideSeekBar: Boolean = false | |||
var seekIncrementMS: Int = 10000 | |||
var hideDuration: Boolean = false | |||
var showSubtitleButton: Boolean = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@seyedmostafahasani Can you please start by extracting showSubtitleButton & showSettingButton in a separated PR please ?
I am not sure this PR will me merged unfortunnatly, I am afraid of posssible regressions :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for reviewing again.
Yeah, sure.
I will do it.
@seyedmostafahasani I would like to merge this, if you don't have time to resolve conflicts please let me know I will clone PR and do It by myself |
@KrzysztofMoch |
Just a comment: This PR will not close #3232 since the iOS implementation has not been added. If someone could add the same feat on iOS, it would be ACE! 🙏 Great work all around! |
Hi, I just wanted to check in about the status on this PR. These are some great changes, and I would love to see them merged in. |
@fredrifoUni |
That's great to hear. Thank you! |
Summary
Upgrade player UI to align with media3 demo app
Motivation
Using the native controller to close these issues. (#4019, #3301, #3232, #2599, #4043)
Changes
Test plan