cordova-plugin-media-controller
Interactive multimedia controls. Based on https://github.com/homerours/cordova-music-controls-plugin
Platforms
- Android (4.1+)
- iOS (under development)
- Windows (10+)
Installation
cordova plugin add https://github.com/filfat-Studios-AB/cordova-plugin-music-controller
cordova prepare
Methods
Create the media controller:
MusicController;
Destroy the media controller:
MusicController;
Subscribe to the media controller events:
{ }//Register callbackMusicController; //Start listening for eventsMusicController;
Feature detect to avoid crash or errors on unsupported platforms:
document;
Quirks
- Cordova 5.0 or higher is required for Windows support.
- Android is qurrently the only platform that supports the headset events.
- Windows currently only supports locally stored covers.
- Windows Mobile requires to have at least one audio player active before showing up.
- This plugin is still under development which means that it's not yet "production ready".
Screenshots