19
Views
1
Comments
[Howler JS - Javascript Audio player] How can player's media controls be displayed in the lock screen and notification bar?
howler-js-javascript-audio-player
Reactive icon
Forge asset by Bruno Machado
Application Type
Mobile, Reactive

Hi @Bruno Machado ,
I have implemented this plug-in into a mobile app. The audio is playing smoothly. 

When the device is locked, I would like to see the player's media controls in the notification bar and lock screen.
I used the media session api provided in the docs. I tried using the mediaSession metadata, but it didn't showing. 

Please help me figure out how to make the media controls appear above the lock screen and notification bar.

Thanks,


UserImage.jpg
Bruno Machado
Staff

Hello Amar,

great you have the plugin working.

Howler is a JS plugin, not a Cordova plugin. It might work on a mobile application, but i think you are trying to go for some of the capabilities that are out of the scope of this plugin.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.