AngPlayer 1.0.2

AngPlayer 1.0.2

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release May 2019
SPMSupports SPM

Maintained by Tao.



AngPlayer 1.0.2

AngPlayer

CI Status Version License Platform

Play your video more easly##

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

ios 8.0~

Installation

AngPlayer is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "AngPlayer"

useage

  1. Make Player ViewController

     class PlayerVC: AngPlayerVC {
    
     }
    
  2. Make Player

     var angPlayer: AngPlayer!
     override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) {
     	super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
     	angPlayer = AngPlayer(frame: UIScreen.main.bounds)
     	self.view.addSubview(angPlayer)
     }
    
  3. Link Url

file in Resaurce

                angPlayer.url = FileLocation.bundle.url(filePath: "001.mp4")

web

                angPlayer.url = URL(string: "http://<>")

files

         let urls : [URL?] = [
                 URL(string: "https://<>.m3u8"),
                 URL(string: "https://<>.m3u8"),
                 URL(string: "https://<>0.m3u8"),
                 FileLocation.bundle.url(filePath: "001.mp4"),
     	]
     	angPlayer.urls = urls

Author

[email protected], [email protected]

License

AngPlayer is available under the MIT license. See the LICENSE file for more info.