Set media volume device ?

2 posts, 0 answers
  1. Alex
    Alex avatar
    1 posts
    Member since:
    May 2016

    Posted 17 Nov 2017 Link to this post

    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.

    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 :
    How i can do this in Cordova Telerik platform ?

    Thanks and sorry for my poor english.

  2. Toma Nikolov
    Toma Nikolov avatar
    1 posts

    Posted 22 Nov 2017 Link to this post

    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 AVSystemController.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.

    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.

Back to Top