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: add setSource API function fix ads playback #4185

Merged
merged 7 commits into from
Oct 10, 2024

Conversation

freeboub
Copy link
Collaborator

@freeboub freeboub commented Sep 19, 2024

Summary

feat: Add setSource API
fix(android): playback start up

Motivation

Add setSource API, linked to: #3352
fix: #3928

Changes

Add setSource command: easy on ios

On Android:
I moved management of playback stop from : ReactExoplayerViewManager.kt to ReactExoplayerView.java
I added concept of running source. I allows to avoid race conditions. during asynchronious process of startup, we are now stopping it if start has been canceled

For ads, I avoid releasing this adsLoader when the player is not destroyed.

Test plan

Sample has been patched to integrate this source change

@freeboub freeboub marked this pull request as ready for review September 26, 2024 20:23
…o into feat/reworkSourceStart

# Conflicts:
#	src/Video.tsx
@freeboub
Copy link
Collaborator Author

freeboub commented Sep 26, 2024

@KrzysztofMoch If you want to do a first review on this PR it would be great, There is a remaining resize glitch on sample when we change video on android, I will fix that.

@freeboub
Copy link
Collaborator Author

@KrzysztofMoch If you want to do a first review on this PR it would be great, There is a remaining resize glitch on sample when we change video on android, I will fix that.

OK, this is fixed !

@seyedmostafahasani
Copy link
Collaborator

seyedmostafahasani commented Sep 28, 2024

@freeboub
Thanks for this PR. I really like it!
Nice work!

@KrzysztofMoch
Copy link
Member

PR Looks Good For Me - only this ADS thing need to be fixed and we can merge

@freeboub
Copy link
Collaborator Author

freeboub commented Oct 9, 2024

@KrzysztofMoch Done, thank you for the feedback !

@freeboub freeboub merged commit 9a3fcda into TheWidlarzGroup:master Oct 10, 2024
12 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.

[BUG]: Ad control not working on android
3 participants