-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[video_player] Add option to set video audio to mix mode in iOS #1174
[video_player] Add option to set video audio to mix mode in iOS #1174
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
|
I signed it! |
CLAs look good, thanks! |
Any word on moving this pull request forward? |
hm, I can fix the linter errors and rebase but I would appreciate some feedback from the maintainers if this is a good approach or what they think about it in general. |
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.
Thank you for the contribution, It looks good overall. I left some comments.
Also, I think we should try to combine this PR with #1755 so we can easily unify the public API.
Hi, thanks for the review. I will make the requested changes now and make the build green. I would suggest that I merge changes from #1755 (as one commit into this branch) and also set the correct mode for Android when the configuration option was provided to mix the audio. Is this ok for you @recastrodiaz ? |
815ffa8
to
ddd8718
Compare
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
ddd8718
to
762ff90
Compare
@recastrodiaz pulled the one commit from you. I guess you have to tell the googlebot again that you consent, like explained in it's comment? Android is now also using the option, tested in in emulator, worked fine for me. Now I will check that all builds get green. |
762ff90
to
fb4f307
Compare
@googlebot I consent |
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
ok, @cbenhagen I will rebase and adopt this when I have time. |
589fbe8
to
d45c8ec
Compare
I adapted it to the new structure but I am not sure how to make the tests pass because I had to make a change in the interface package and in the player package and they depend on each other but the new one is not released... In general, this structure is very complicated in my opinion. So the reason to split this up is just that the web plugin does not install the ios and android dependencies? Feel free to change whatever is necessary in order to merge it. |
anyone that runs into this... like us for instance, we have an app that doesn't use sound but we have video backgrounds, calling play on VideoController was killing user's background music playing on ios. fix is here for those desperate: https://github.com/crazedVic/plugins |
@crazedVic if you want to take this topic over, go ahead and open a PR with your fixes. Link it here so we now that you took over then I gladly close my PR. For me, this is just a way too long ongoing process right now and I don't have time for this issue anymore. |
@wwwdata To be honest, I think this oversight is a bug and something that Google should have fixed on their own instead of making someone trying to help (in this case, you) jump through all these hoops. If there's nobody on their team willing to take the time to fix their own product (or keep it updated, this is the only plugin that gives me a deprecation warning on android), then why should we waste our time? Google has literally billions of dollars at their disposal, they hire the best engineers, and then they let things like this remain unresolved for years? No way I am going to do their work for them. / endrant :). On a less ranty note, your code saved my bacon yesterday. Client is super stoked that they can keep listening to music while using the app. So even though Google basically threw you to the curb, I super appreciate your efforts! |
Hey guys, any sign this will get fixed? Have several apps on the store with silent video content; getting lots of feedback from users saying it keeping pausing their music / podcasts.. not good.. |
Is there a timeline of when this might be fixed and merged in? |
any news? |
Is there any news on this? It's really annoying our users! The patch that was offered doesn't work anymore. |
It's very annoying... it is really not possible that for such fundamental problems after more than a year neither a solution is accepted nor other proposals are released... I like Flutter very much, but it simply destroys production use cases. https://github.com/crazedVic/plugins worked for me.. thank you @crazedVic ! |
Still not merged |
@wwwdata Sorry for the delay. The PR looks good. If you could please rebase and I can land it. |
@cyanglaz Thanks lots of us are waiting for this :) |
@wwwdata I understand your frustration. Can you let @cyanglaz know if you're planning on rebasing so he can land, or if you'd prefer someone else to do so? |
Hi. I can rebase it again. But this weekend I have no time. I will do it next week. Maybe Monday/Tuesday. Would be great to finally merge this in 😂 |
Sounds good - thank you so much for your patience! 🙂 |
@wwwdata Thank you! Feel free to @ me after the rebase. I will work on landing it! |
Hi, I did the work now but unfortunately, I lost access to the repo I originally opened the pull request from because I don't work for this company anymore. I created another PR with my changes here. Sorry for the inconvenience: #2922 |
No worries! Thanks for sticking with it - I'll close this now and move discussion over to #2922 |
When listening to music in iOS, the Video Playback would disable the music and only the audio from the Video is enabled. For most use cases that should be OK but when playing videos in the background that are silent, that is not a desirable behaviour.
I also noticed a lot of errors because the
initializingCompleter
was called even though it was already completed so I added a guard against that.