KoustMoviePlayer is a custom player for iOS. It's similar to Netflix's Player and it is almost available with its all features.
- iOS 10.0+
- Xcode 10.0
- Swift 4+
- Skip Button (used for skip the any specific time that want to jump)
- Rewind Button (used for rewind. If you want you can also set time.)
- Subtitle
- Thumbnail Animation
You can use CocoaPods to install koustMoviePlayer
by adding it to your Podfile
:
platform :ios, '10.0'
use_frameworks!
pod 'koustMoviePlayer'
- Download and drop
class
path in your project. - Congratulations!
var koustMPC:KoustPlayerView!
override func viewWillAppear(_ animated: Bool) {
koustMPC = KoustPlayerView(videoURL:URL(string:"https://samplevideos.com/video123/mp4/720/big_buck_bunny_720p_10mb.mp4")!)
}
@IBAction func playAction(_ sender: Any) {
koustMPC.subtitleResourceName = "sample"
koustMPC.skipButtonDuration = 5
koustMPC.skipButtonActive = true
koustMPC.backButtonTitle = "Cartoon Movie | For Kids +4"
koustMPC.autoPlay = .play
koustMPC.presentAVPlayer()
}
- Download and drop
SubtitleModel.swift,KoustSubtitleController.swift and KoustPlayerProtocol.swift
in your project. -
let subTitle = KoustSubTitleController(delegate: self) subTitle.setSubtitle(forResource: "exampleSrtFile")```
- You should be add
KoustSubtitleDelegate
class. - Congratulations!