- Add support for
preventsDisplaySleepDuringVideoPlaybackconfigurability to not override device auto-lock settings
- Swift 5 support
- make
videoGravityconfigurable. - add caching for remote URLs (by danibachar).
- add thumbnail image (by danibachar).
(2018-10)
- Updated to Swift 4.2
(2018-02-26)
- Removed support for passing in multiple videos to play one after another
- Renamed
alphatodarkness - Removed non-throwing
play(). Use the throwingplay()instead.
- Added a singleton called
shared. Now users don't need to retain an instance ofVideoBackgroundto 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
playerLayerpublic to allow advanced control and customization - Add
setAudioSessionAmbienttoplay. Set totrueby default.
- Add clean up code to
play(), so multiple calls to it should work smoothly
(2018-02-19)
- Added a singleton called
shared. Now users don't need to retain an instance ofVideoBackgroundto 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
videoNotFounderror that returns the video name and type in question. - Added deprecation warning for old API.
- Added new public struct
VideoInfothat 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().
(2018-02-16)
- Fixed layout issues for alpha overlay when device orientation changed
(2018-02-14)
- Fixed layout issues when device orientation changed
- Fixed issues with images in README not showing up in Cocoapods/Jazzy docs
(2018-02-14)
- Added observer to handle application state transition back to foreground
(2018-01-30)
- Added a basic test and travis-ci integration
- Fixed podspec documentation generation
2.0.0 (2017-12-14)
Major Release: BREAKING CHANGES
- renamed class from
BackgroundVideotoVideoBackgroundfor consistency with package name - class is no longer a subclass of
UIView- instantiate an instance simply with
let videoBackground = VideoBackground()
- instantiate an instance simply with
- only one API is exposed,
play().play()requires aUIViewpassed in. It will play your video on this view. Typical usage would just be to pass in theUIViewclass property of yourUIViewController.
For more information, please see the documentation
For an example and help with migrating from previous versions, please see the migration guide
1.0.1 (2017-10-31)
- Modified minimum deployment target to iOS 8.0
1.0.0 (2017-10-26)
Official 1.0.0 major release of SwiftVideoBackground.