Closed shinde87sagar closed 9 years ago
Can you tell me your current cordova version please?
3.5.0-0.2.7 I was manage to get it working on my end. In short made a plugin of it. But the issue for me is that. I am using live streams (radio) for the audio. So I have to pass the image via url and as the audio is also via the url I cannot have the audio controls immediately on the lockscreen (the audio buffers first and then plays and then only the audio controls visible). Also pausing the audio from the lockscreen disables the image.
I create this plugin for a radio station too http://www.addictradio.net So it's works with html5
nowPlaying.updateMetas(artist, title, album, cover);
Pausing the audio from the lockscreen disables the image. In my memory, I have the same thing on my app.
What happens if its a live streaming. It so appears that when I am doing it. If it goes in buffer the image is disabled. Also it appears that you are using the HTML5 plain audio tag, whereas in my case I use the jPlayer object( which in turn uses audio tag). Can you tell me how are you checking if its actually playing. And just a off question. Is audio preload supported in iOS html5 within phonegap
BTW I just came across this https://github.com/shi11/RemoteControls .And btw I also happen to make a similar kind of plugin taking remote server url for the image. I guess you didnt have the Album Art to show. But yes your plugin gave me the idea of it. And also you havent handled the "cover" param of the js call.
I followed the instruction to include it in my cordova application but didnt get it right then made a dummy plugin on it and added it to the project but still no luck. Can you give a dummy app or full installation example of it. Also I am having jPlayer Plugin on my HTML/JS site. And iOS itself captures the audio stream and shows it to the lockscreen. Hence I just need to push the image and title of the track and nothing else.
ps:- Sorry for raising it as new issue. I couldnt find any way to message or mail you.