Skip to content

2.1.0: Merge pull request #43 from dingwilson/cooca-pods

Compare
Choose a tag to compare
@quanvo87 quanvo87 released this 19 Feb 23:14
· 82 commits to master since this release
f7e2077
  • 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 they needed to play multiple videos simultaneously.
  • Added throwing APIs that throw a videoNotFound error that returns the video name and type in question.
  • Added deprecation warning for old API.
  • Added new public struct VideoInfo that contains a video's name and type.
  • Added new API that takes in an array of VideoInfo, and plays them in sequence.
  • Added some clean up code that gets called on each play(), in an attempt to reset state in the event of multiple calls to play().