Skip to content

AudioPlayerViewController: Add Chromecast support

This merge requests adds the Chromecast support to the audio player.

The interface is now updated when a cast connection is:

  • established inside the audio player
  • detected when opening the audio player

The VideoPlayerInfoView class was renamed to PlayerInfoView to match the purpose of this class as it is used in both the video and the audio player.

The device button's appearance of the video player is also adjusted according to the current cast state.

This fixes a visual glitch where the button is not updated when the connection is dropped before opening the player.

Screenshot
Screen recordings Simulator_Screen_Recording_-iPhone_14-_2023-03-09_at_18.34.19 Simulator_Screen_Recording_-iPhone_14-_2023-03-09_at_18.33.51
Edited by Diogo Simao Marques

Merge request reports