SwiftVideoBackground v3.0.0 Release Notes
Release Date: 2018-02-27 // about 6 years ago-
(2018-02-26)
๐ฅ BREAKING CHANGES:
- โ Removed support for passing in multiple videos to play one after another
- ๐ Renamed
alpha
todarkness
- โ Removed non-throwing
play()
. Use the throwingplay()
instead.
๐ Features:
- โ Added a singleton called
shared
. Now users don't need to retain an instance ofVideoBackground
to play a video.- Users can still create new instances if needed, i.e. if needed to play multiple videos simultaneously.
- โ Add support for playing video from a local or remote URL
- โ Add APIs for pause, restart, resume, darkness, isMuted, & willLoopVideo
- ๐ Make
playerLayer
public to allow advanced control and customization - โ Add
setAudioSessionAmbient
toplay
. Set totrue
by default.
๐ Fixes:
- โ Add clean up code to
play()
, so multiple calls to it should work smoothly