- This topic has 11 replies, 4 voices, and was last updated 11 years, 9 months ago by lemorlenny.
-
AuthorPosts
-
NigelShawMemberHi,
i know that volume or sliders are not currently available in Mobione but is there a way of making one with jquery or javascript to provide a screen volume control?
i found a really nice and simple one in HTML & javascript that works really nice, but not in Mobi. it doesnt appear in the html box.
Has anyone managed to make a volume control as of yet?
thanks
Nigel
JustJohnMemberHey Nigel,
Take a look at this link http://jquerymobile.com/demos/1.2.0/docs/forms/slider/
jQuery mobile is pretty easy to implement and the site has a ton of examples. The only drawback is that you will have to add your code directly in the HTML widget or the test center – view source section as these widgets will not show up in the GUI design center.
Hope that helps.John
support-michaelKeymasterHi Nigel,
I want to share that there is not a common volume control api available for ios and android apps. MobiOne App Center Builder use the cordova/phonegap 2.1 framework and api.
NigelShawMemberHi guys
Thanks for the replies. I’m aware that there isn’t a common API for iOS but, you can control the volume if a web page through JavaScript?
That or a fixed volume :s
Thanks again
Nigel
support-michaelKeymasterHi Nigel,
> but, you can control the volume if a web page through JavaScript?
Unlike desktop browser volume control as far as I know you can not control volume on iOS device via javascript. If you find a running example that proves otherwise please share it.
JustJohnMemberNigel,
Are you trying to adjust the volume of the device or the volume of a media file that you are playing?
Because you can adjust the volume of a media file that your program is playing.John
NigelShawMemberHi John
Either really. If I can’t change the volume of the device itself, the volume of the media would be the next option 🙂
Would you be so kind as to explain how I could do this and if at all possible, how to implement it into mobi? I know that I would need to se a HTML box which is fine but its getting the code working :s
Many thanks for your help 🙂
Nigel
JustJohnMemberHey Nigel,
If it’s changing the volume of an audio file that you want to load in the app I will try to post an example later this evening.
John
NigelShawMemberHi John
Yes if you could do that, it would be amazing
Thanks for your help 🙂
Nigel
JustJohnMemberHey Nigel,
After some testing and research it seems that the audio/video volume cannot be adjusted on iOS devices through javascript.
The user must physically adjust volume on the device. Sorry, I didn’t notice that quirk until I started testing.John
support-michaelKeymaster@JustJohn, Nigel,
Many 3rd player audio apps on iOS do not provide volume control, e.g., pandora, amazon…
lemorlennyMembererr.
-
AuthorPosts