Skip to content

Commit

Permalink
Merge pull request #219 from THEOplayer/bugfix/android_audiofocus_hos…
Browse files Browse the repository at this point in the history
…tresume

Bugfix/android audiofocus hostresume
  • Loading branch information
tvanlaerhoven authored Oct 24, 2023
2 parents 6854d88 + b46c835 commit d49c18b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Changed

- When resuming an app on Android, retrieve audio focus only if the player is not paused.

### Fixed

- Fixed an issue on Android where during play-out of a locally stored media asset the `seekable` property would not update.

## [3.0.2] - 23-10-17
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,9 @@ class ReactTHEOplayerContext private constructor(
isHostPaused = false
mediaSessionConnector?.setActive(true)
playerView.onResume()
audioFocusManager?.retrieveAudioFocus()
if (!player.isPaused) {
audioFocusManager?.retrieveAudioFocus()
}
}

fun destroy() {
Expand Down

0 comments on commit d49c18b

Please sign in to comment.