This is a migrated thread and some comments may be shown as answers.

[Solved] Set media volume device ?

1 Answer 86 Views
Android Devices
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alex
Top achievements
Rank 1
Alex asked on 17 Nov 2017, 07:51 PM
I use Telerik Platform to build a cordova app, i have a standard html5 video like this :
<video id"videoarea" width="400">
  <source src="mov_bbb.mp4" type="video/mp4">
  <source src="mov_bbb.ogg" type="video/ogg">
  Your browser does not support HTML5 video.
</video>

i want to set a volume control but not only for the video, not like this :

var vid = document.getElementById("videoarea");
vid.volume = 0.5;

I want to set a volume control for all medias element, so i want to control this :
https://i.stack.imgur.com/XzjwK.png
How i can do this in Cordova Telerik platform ?

Thanks and sorry for my poor english.

1 Answer, 1 is accepted

Sort by
0
Toma Nikolov
Telerik team
answered on 22 Nov 2017, 03:11 PM
Hello Alex,

As far as I am aware, Cordova does not offer a straight-forward approach to change the system volume. I found this plugin which seems to provides a way to interact with the system volume, however, please have in mind that the plugin uses the private .h API for iOS. This means that you cannot publish your app to the AppStore because it will be rejected. How you can import a custom plugin in AppBuilder is explained here.

I hope this is of any help.

Regards,
Toma Nikolov
Progress Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
Android Devices
Asked by
Alex
Top achievements
Rank 1
Answers by
Toma Nikolov
Telerik team
Share this question
or