0

I am doing iOS react-native app. App is video player, which can connect to ChromeCast. I have a task to control ChromeCast volume with iPhone volume buttons. Does anyone know how to do it in react-native. Or at least explain how to detect it with IOS (objective-c)?

Regards, Vitalii

Vitalii
  • 39
  • 3
  • Does this answer your question? [Detect volume button press](https://stackoverflow.com/questions/28471481/detect-volume-button-press) – Julia May 18 '22 at 11:19
  • 1
    Check out this answer: https://stackoverflow.com/a/61738461/19027584 – Martinez May 18 '22 at 17:16

1 Answers1

0

Using this library https://github.com/rtmalone/react-native-volume-control you can detect volume press event via hardware button

Mobile Team iOS-RN
  • 1,996
  • 1
  • 9
  • 22