For now we don’t provide Corona users that ability, but I’ll see what I can do.
I’ll try to put it on our schedule as soon as possible, should be included in the next plugin update in about 1-2 week. B)
For now we don’t provide Corona users that ability, but I’ll see what I can do.
I’ll try to put it on our schedule as soon as possible, should be included in the next plugin update in about 1-2 week. B)
Btw,
Note: Video ads that are ineligible to be shown with muted audio are not returned for ad requests made when the app volume is reported as muted or set to a value of 0. This may restrict a subset of the broader video ads pool from serving.
Thanks karpovpw - I’ve made our client aware that the fill could be lower.
If the volume is lowered rather than muted (e.g. set to 0.5) would that affect the fill? Just trying to work out if there is a good middle ground between reducing the audio and maintaining the fill.
Hi Alan,
Well, I’m not working at google, so can’t say for sure, but if doc page doesn’t specify that, I think that any value, besides 0.0 should result in normal fill.
Since muting is absolutely the same thing as setting volume at 0.0 level, we’ll include only volume parameter to avoid cluttering api.
The update should be public till the end of this week.
Hi Alan,
We’ve just updated AdMob plugin with the latest Google’s sdk and added a new init parameter - videoAdVolume.
You can get more info at https://docs.coronalabs.com/plugin/admob/init.html
Hi karpovpw,
Many thanks for this.
I’m generally a fan of Corona’s approach of simplifying code in this way. i.e. one function to control volume that can also mute with the 0.0 setting. However, in this case I think it would be useful to update the docs to explain the warning you mentioned above:
Note: Video ads that are ineligible to be shown with muted audio are not returned for ad requests made when the app volume is reported as muted or set to a value of 0. This may restrict a subset of the broader video ads pool from serving.
Cheers,
Ian
Yeah, that’s a good point, docs will be updated soon.
edit: done!
Does this need to be built using a particular version of Corona? I’ve just tried using build 2017.3184 and even though I set:
videoAdVolume=0.1
the audio was still at the same volume as usual.
Edit: If it’s any help, the plugin version is printing out as
plugin.admob: 1.2.2 (SDK: 11400000)
Anything after 3049 is acceptable. Your plugin version 1.2.2 is the newest one.
We’ve already tested this new release and everything working as expected. It’s an important part of the release.
I’ve tested it for myself right now just to be sure and I have no issue changing volume both on android and ios devices, tried values 0.0 0.1 0.5 1.0 for both.
Could you try 0.0, to see if it works for you at all? We’ll start from there. Also, what is your test device? Can you show your init() code?
Here is my init code:
admobPlugin.init( adListener, { appId=key, testMode=false, videoAdVolume=0.0 } )
Also tried with videoAdVolume = 0.1, in both cases the audio is full volume.
We have tested on a Samsung Galaxy S7 and S8 (both running Android 7.0)
So, with mentioned _videoAdVolume=0.0 _the audio isn’t muted?
Then it’s definitely not app-plugin issue, but more plugin-sdk-system issue. Can you make sure that there is nothing stopping admob from muting your app? Like something about:
If your app has its own volume controls (such as custom music or sound effect volumes), disclosing app volume to the Google Mobile Ads SDK allows video ads to respect app volume settings. This ensures users receive video ads with the expected audio volume.
The device volume, controlled through volume buttons or OS-level volume slider, determines the volume for device audio output. However, apps can independently adjust volume levels relative to the device volume to tailor the audio experience.
mentioned in https://developers.google.com/admob/android/global-settings
Since we cannot reproduce this issue on our test devices for now, can you make some kind of a sample project for us to catch a bug? It shouldn’t be your main project or something.
You can fill a form here: https://portal.coronalabs.com/bug-submission
Make sure to include this mentioned sample.
Hi Alan,
Is the problem still persist for you or was it solved already?
Hello karpovpw, Is the new plugin yet released or is it going to take more time? I really need to update my app with the feature to toggle between mute and full volume asap. Please link me to some documentation where this new plugin is explained.
Hi,
I will post to this thread as soon as an update will become public.
A new release is getting closer to finishing QA process, so it should be available this week. Stay tuned!
Hi,
the function is now in the public docs, however I still get an error when using it?
Best regards!
Hi, bjoern!
What do you mean by saying “still get an error”? Have you got it earlier? What’s the error we are talking about? Can you post a log or something?
Newest update is live and I’ve just checked new method - everything works as expected. One thing to note - make sure that you are using the latest and greatest Corona Simulator (anything above 3326 will be fine) to get the latest update for Admob plugin.
Oh my fault, the error only happens in Corona Simulator.
The error sounded to me like the plugin still does not know the new function, but it’s simply because the plugin is not supported in Simulator. (However, other functions like admob.init () only show a warning in Simulator but do not cause runtime errors).
ERROR: Runtime error main.lua:10: attempt to call field 'setVideoAdVolume' (a nil value)
That’s strange, it should be included in sim builds. Thanks for the feedback, we’ll fix it.