Skip to content

3.0.0

Compare
Choose a tag to compare
@dingwilson dingwilson released this 27 Feb 02:00
· 69 commits to master since this release

BREAKING CHANGES:

  • Removed support for passing in multiple videos to play one after another
  • Renamed alpha to darkness
  • Removed non-throwing play(). Use the throwing play() instead.

Features:

  • Added a singleton called shared. Now users don't need to retain an instance of VideoBackground 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 to play. Set to true by default.

Fixes:

  • Add clean up code to play(), so multiple calls to it should work smoothly