Giter Club home page Giter Club logo

Comments (6)

Shery11 avatar Shery11 commented on June 28, 2024

Updated. Managed to solve the issue but now when press the volume buttons then it would not fire event rather than that it would increase the device volume.

from cordova-music-controls-plugin.

ghenry22 avatar ghenry22 commented on June 28, 2024

Check the readme, some buttons only fire events on certain operating systems. iOS doesnโ€™t fire volume events and will only change device volume. This is an iOS limitation.

Android should fire volume change events and change the media volume.

from cordova-music-controls-plugin.

javier-gm avatar javier-gm commented on June 28, 2024

Updated. Managed to solve the issue but now when press the volume buttons then it would not fire event rather than that it would increase the device volume.

Hi! I know it's been a while but how did you managed to make it work in Ionic3. I can't get the events from headphones. I only need the main button.

from cordova-music-controls-plugin.

Shery11 avatar Shery11 commented on June 28, 2024

What do you mean by main button ?

from cordova-music-controls-plugin.

javier-gm avatar javier-gm commented on June 28, 2024

Sorry if I explained myself wrong. Headphones usually have 3 buttons: vol+, vol- and the one you use to play/pause. I don't know its name. My app recognize when I plug/unplug the headphones, but none of the buttons.

from cordova-music-controls-plugin.

Shery11 avatar Shery11 commented on June 28, 2024

As far as i remember i was actually not able to get the middle button working but was able to get vol+ and vol- button by listening for cordova events

please refer to this https://cordova.apache.org/docs/en/latest/cordova/events/events.html#volumedownbutton

from cordova-music-controls-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.