Latest 1.0.0
Homepage https://github.com/nerd0geek1/PlayListPlayer
License MIT
Platforms ios 9.0
Authors



PlayListPlayer is AVPlayer wrapper module to simplify playing audio/movie file using AVPlayer and AVPlayerLayer.

How to use

//assign audio movie files to Player
let url1: URL = URL(string: "...")!
let url2: URL = URL(string: "...")!
let url3: URL = URL(string: "...")!
PlayListPlayer.sharedInstance.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.sharedInstance.play()

PlayListPlayerSample is sample project which includes above files, so please refer it if needed.
You can confirm screen like below with sample project.

Requirements

  • iOS 9.0+
  • Xcode 7.3 or above

PlayListPlayer is now supporting Swift2.3/Swift3.

Installation

CocoaPods

To integrate PlayListPlayer into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'

project 'YOUR_PROJECT_NAME'

target 'YOUR_TARGET_NAME' do
  use_frameworks!

  pod 'PlayListPlayer'
end

Then, run the following command:

$ pod install

Carthage

To integrate PlayListPlayer into your Xcode project using Carthage, specify it in your Cartfile:

github "nerd0geek1/PlayListPlayer"

Then, run the following command:

$ carthage update

Audio/Movie file License

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

License

This software is Open Source under the MIT license, see LICENSE for details.

Latest podspec

{
    "name": "PlayListPlayer",
    "version": "1.0.0",
    "summary": "Audio/Movie PlayList Player module written in Swift3",
    "description": "PlayListPlayer is AVPlayer wrapper to make easy playing audio/video file from URL",
    "homepage": "https://github.com/nerd0geek1/PlayListPlayer",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Kohei Tabata": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/nerd0geek1/PlayListPlayer.git",
        "tag": "v1.0.0"
    },
    "source_files": [
        "Classes",
        "PlayListPlayer/**/*.{swift}"
    ],
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This