v2.1.20
- 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