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

feat(android): add live video label #4190

Merged

Conversation

seyedmostafahasani
Copy link
Collaborator

Summary

Display a Live label for live videos.

Motivation

This allows the user to easily identify whether the video is live.

Changes

Test plan

Play a live video in the sample app to verify the label appears correctly.

@seyedmostafahasani seyedmostafahasani changed the title feat(android): show live video label feat(android): add live video label Sep 27, 2024
@freeboub
Copy link
Collaborator

One more remark and after I think we are good !

@freeboub
Copy link
Collaborator

freeboub commented Sep 28, 2024

and you forgot to add the new field in the documentation !

@seyedmostafahasani
Copy link
Collaborator Author

You're right.
I will add it in a while.

@seyedmostafahasani
Copy link
Collaborator Author

@freeboub
Thanks for reviewing. I applied your suggestions.

@freeboub
Copy link
Collaborator

@seyedmostafahasani there are some conflict due to another pr merged.
Reviewing again the changes, can you please refactor this kind of duplicated code in a dedicated function:

            previousButton.setImageAlpha(0);
            previousButton.setClickable(false);

Thank you

# Conflicts:
#	android/src/main/java/com/brentvatne/common/api/ControlsConfig.kt
#	android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java
#	docs/pages/component/props.mdx
#	src/specs/VideoNativeComponent.ts
#	src/types/video.ts
@seyedmostafahasani
Copy link
Collaborator Author

seyedmostafahasani commented Sep 30, 2024

@seyedmostafahasani there are some conflict due to another pr merged. Reviewing again the changes, can you please refactor this kind of duplicated code in a dedicated function:

            previousButton.setImageAlpha(0);
            previousButton.setClickable(false);

Thank you

@freeboub
Anytime!
It's done.

@freeboub freeboub merged commit 149924f into TheWidlarzGroup:master Oct 2, 2024
6 checks passed
@seyedmostafahasani seyedmostafahasani deleted the feat/show-live-video-label branch October 3, 2024 09:19
sharnik pushed a commit to brains-and-beards/react-native-video that referenced this pull request Oct 4, 2024
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.

3 participants