CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.
TestsTested | ✓ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Oct 2017 |
SwiftSwift Version | 4.0 |
SPMSupports SPM | ✗ |
Maintained by Kohei Tabata.
PlayListPlayer is AVPlayer
wrapper module to simplify playing audio/movie file using AVPlayer
and AVPlayerLayer
.
//assign audio movie files to Player
let url1: URL = URL(string: "...")!
let url2: URL = URL(string: "...")!
let url3: URL = URL(string: "...")!
PlayListPlayer.shared.set(playList: [url1, url2, url3])
//setup MovieRenderingView(If you want to play video file)
let movieRenderingView: MovieRenderingView = MovieRenderingView()
view.addSubView(movieRenderingView)
movieRenderingView.set(player: player)
//start playing
PlayListPlayer.shared.play()
PlayListPlayerSample
is sample project which includes above files, so please refer it if needed.
You can confirm screen like below with sample project.
PlayListPlayer is now supporting Swift4.
Sample Audio files in this project are provided by Bensound:
http://www.bensound.com/royalty-free-music
Sample Movie files in this project are provided by PEXELS VIDEOS
https://videos.pexels.com/
For sample audio/movie files, please obey these sites license.
Bensound Licensing
PEXELS VIDEOS Video License
This software is Open Source under the MIT license, see LICENSE for details.