Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] Audio stream (http) keeps playing when app/page reloads #342

Open
3 tasks done
goffioul opened this issue Apr 28, 2022 · 0 comments
Open
3 tasks done

[iOS] Audio stream (http) keeps playing when app/page reloads #342

goffioul opened this issue Apr 28, 2022 · 0 comments

Comments

@goffioul
Copy link

goffioul commented Apr 28, 2022

Bug Report

Problem

On iOS, when playing a remote audio stream (e.g. HTTP) and reloading the page content, the audio playback keeps playing and there's no way to stop it from JS, except killing the app.

What is expected to happen?

Audio should stop on app reset (like on Android).

What does actually happen?

Audio keeps playing on app reset.

Information

This is somewhat related to #294, although the cause is slightly different: onReset does not clean-up avPlayer and only takes care of local sounds (where audioFile.player is not nil).

Version information

  • cordova-plugin-media 5.0.4
  • iOS 15

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
goffioul added a commit to goffioul/cordova-plugin-media that referenced this issue Apr 28, 2022
This works around
apache#342 although a
proper fix would reshuffle management of the internal AVPlayer instance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant