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

Trigger Pause event when audio route changes on iOS #1059

Closed
christianYS opened this issue Jan 11, 2022 · 3 comments
Closed

Trigger Pause event when audio route changes on iOS #1059

christianYS opened this issue Jan 11, 2022 · 3 comments
Assignees
Labels
enhancement 🚀 New feature or request Fixed A fix will be in the next release iOS iOS platform
Milestone

Comments

@christianYS
Copy link

When "Resume Playback After Audio Session Route Change" is set to OFF, the video player pauses automatically when an audio device is disconnected.
At the moment there is no straightforward way to understand when this happens. It's desirable that whenever the video player is paused by some internal mechanism, the MediaPlayer component publishes an event, for example MediaPlayerEvent.EventType.Paused to reflect the video player's change of the state.

Describe alternatives you've considered
It's possible to detect the change of state by checking it in every update. But it's already done in AppleMediaPlayer.Update(), implementing another check somewhere else would be redundant.

@kahnivore kahnivore added iOS iOS platform enhancement 🚀 New feature or request labels Jan 12, 2022
@christianYS
Copy link
Author

Do you have a suggestion for detecting the change of state for the current AVPro version?

@kahnivore
Copy link
Contributor

Currently you would need to poll IsPaused, but we agree an event would be better.

@kahnivore kahnivore removed the iOS iOS platform label Jan 12, 2022
@AndrewRH AndrewRH added this to the 1-Near Future milestone Jan 12, 2022
@AndrewRH AndrewRH added the iOS iOS platform label Jan 12, 2022
@MorrisRH MorrisRH added the Fixed A fix will be in the next release label Oct 31, 2023
@MorrisRH
Copy link
Collaborator

Paused and Unpaused events have been added

@Chris-RH Chris-RH closed this as completed Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🚀 New feature or request Fixed A fix will be in the next release iOS iOS platform
Projects
None yet
Development

No branches or pull requests

5 participants