Have an amazing solution built in RAD Studio? Let us know. Looking for discounts? Visit our Special Offers page!
C++

How to control “the system audio volume” of iOS

Author: h.mohri

Use C++Builder 10.2 to control audio volume of iOS.
I used the MPVolumeView class of iOS.
The MPVolumeView class is declared in “iOSapi.MediaPlayer.hpp”.

Include two files.

Form design

Arrange “Up” and “Down” two TButton. Use this button to control the volume.

f:id:mojeld:20170905181055p:plain

Add MPVolumeView to the main form Class

Add “_di_MPVolumeView” and “_di_UISlider” to the form class.

Main Form constructor

Code of volume down button

Code of volume up button

Execute the program.

With Rad’s Studio Native Ios App builder, you can make apps on macOS & Ios in the Delphi or C++ environments. Try the free tool here.

Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial   Upgrade Today

   Free Delphi Community Edition   Free C++Builder Community Edition

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

IN THE ARTICLES