nchutchind / cordova-plugin-streaming-media

Simple plugin for loading full screen streaming video or audio.
MIT License
391 stars 285 forks source link

Background Audio iOS #158

Closed joeldhenry closed 6 years ago

joeldhenry commented 6 years ago

What version of Streaming-Meda-Cordova-Plugin are you using? 2.1.3

What version of Cordova are you using? 8.0.0 (iOS 4.4.5)

What devices are affected? iPhone X iOS 12

Please describe the issue in detail, with relevant code samples When audio is started and app is pushed to background, the audio stops, iOS widget shows audio from app but play/pause doesn't work and nothing plays.

What did you expect to happen? Audio should continue when app is moved to background, and should be pause/playable from iOS widget. No image or title is displayed in Widget as well

joeldhenry commented 6 years ago

Fixed on dev

shamilovtim commented 6 years ago

@joeldhenry I'm not sure if you're saying you pushed this to our repo, but there's no pull request from you. I do have a fix for this ready, though.

joeldhenry commented 6 years ago

@shamilovtim when i installed from dev branch to fix the mute switch issue, this issue was allready fixed by you or someone else, so it is no longer and issue and should be closed. Thanks!, joel

shamilovtim commented 6 years ago

This issue seems to randomly regress but I have a permanent fix for it in the next release

shamilovtim commented 6 years ago

Alright fixed in 67c1ddbe6da058fc82048d1babe5c449c6722122

When using the audio player, audio will stay in the background. When using the video player, video will autopause (as usual) when going in the background.

Final note: As with the previous functionality, video files can still be played in the audio player and the audio of the video will stay in the background when minimized.