Skip to content

v2.1.20

Compare
Choose a tag to compare
@cgmaier cgmaier released this 08 Mar 23:03
· 24 commits to main since this release
21d4e77
  • addresses issue #195: issue where search bar issue not properly shown if emoji is set as the first content type

clips refactor

  • significant refactor to improve video playback code quality and memory usage
  • previously, we powered clips in-line playback by instantiating a new video player for every new clip added to the collection (in a chat, for example). maintaining multiple active players led to unnecessary memory management & resource consumption
  • the new solution entails reusing a single video player across multiple cells:
let playerView = GPHVideoPlayerView()
let videoPlayer = GPHVideoPlayer()
videoPlayer.loadMedia(media: media, autoPlay: true, muteOnPlay: true, view: videoPlayerView, repeatable: true)
  • relevant documentation has been updated in the GPHVideoPlayer + GPHVideoPlayerView section of the clips.md file
  • the Swift sample project has also been updated to showcase necessary changes