AngPlayer 1.0.0

AngPlayer 1.0.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Aug 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Tao.


Downloads

Total9
Week0
Month0

Installs

Apps3
powered by Segment

GitHub

Stars0
Watchers1
Forks0
Issues0
Contributors1
Pull Requests0

Code

Files2
LOCLines of Code 536


AngPlayer 1.0.0

AngPlayer

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.