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
-
Make Player ViewController
class PlayerVC: AngPlayerVC { }
-
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) }
-
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.