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”.
Table of Contents
Include two files.
[crayon-681e1dc4a880c837460055/]
Form design
Arrange “Up” and “Down” two TButton. Use this button to control the volume.
Add MPVolumeView to the main form Class
Add “_di_MPVolumeView” and “_di_UISlider” to the form class.
[crayon-681e1dc4a8813277754240/]
Main Form constructor
[crayon-681e1dc4a8815824489329/]
Code of volume down button
[crayon-681e1dc4a8816564384751/]
Code of volume up button
[crayon-681e1dc4a8817177051157/]
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.