Skip to content

Picture in Picture stability improvements

Compare
Choose a tag to compare
@defagos defagos released this 11 Oct 13:56
· 37 commits to main since this release
5.0.0
be9f641

Warning

Sources associated with player items, introduced in version 4.0.0, will be removed in version 6.0.0. Please avoid using them in your code.

This release improves Picture in Picture support in advanced scenarios involving several video views supporting it, avoiding unexpected playback interruptions in some cases.

Picture in Picture fixes and improvements

  • Improve Picture in Picture stability in complex view hierarchies involving several supporting VideoViews or SystemVideoViews.
  • Add method to start Picture in Picture programmatically. This method must only be called in response to some form of user interaction.
  • Add PictureInPicturePersistable method informing implementations that Picture in Picture has been closed from the Picture in Picture overlay.

Miscellaneous improvements

  • Remove VideoView internal animations when loading content. If applications desire such animations they can animate the video view directly.
  • Adjust monitoring data.
  • Update comScore SDK to its most recent version.

Breaking changes

  • Chapters associated with a media composition are provided by MediaMetadata, not MediaComposition directly anymore.

Fixes

  • Fix glitches affecting VideoView during animations.
  • Fix Control Center restoration after mixable to non-mixable audio session transitions on iOS and tvOS 16 / 17 devices.
  • Avoid pausing playback when a monoscopic video view is destroyed.
  • Fix crashes when loading URNs for which a main chapter is not available from the associated media composition chapter list.

Demo improvements

  • Add iOS 18 dark and tinted icons.