https://github.com/koust/koustmovieplayer
koustMoviePlayer is similar netflix player. Almost , available all features on koustMoviePlayer
https://github.com/koust/koustmovieplayer
avplayer ios library subtitles swift4
Last synced: 2 months ago
JSON representation
koustMoviePlayer is similar netflix player. Almost , available all features on koustMoviePlayer
- Host: GitHub
- URL: https://github.com/koust/koustmovieplayer
- Owner: koust
- License: mit
- Created: 2018-11-07T10:05:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-28T06:59:54.000Z (over 6 years ago)
- Last Synced: 2025-04-10T00:02:19.790Z (2 months ago)
- Topics: avplayer, ios, library, subtitles, swift4
- Language: Swift
- Homepage:
- Size: 34.4 MB
- Stars: 17
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README


# KoustMoviePlayer
KoustMoviePlayer is a custom player for iOS. It's similar to Netflix's Player and it is almost available with its all features.
## Preview [Movie]
[](https://youtu.be/3ivGqio0b4w "KoustMoviePlayer Youtube")
## Requirements
- iOS 10.0+
- Xcode 10.0
- Swift 4+## Features
- 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
## CocoaPods
You can use [CocoaPods](http://cocoapods.org/) to install `koustMoviePlayer` by adding it to your `Podfile`:```ruby
platform :ios, '10.0'
use_frameworks!
pod 'koustMoviePlayer'
```## Manually
1. Download and drop ```class``` path in your project.
2. Congratulations!## Usage
### Basic Usage
```swift
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()
}
```### Subtitle (You can use the subtitle feature separately.)
1. Download and drop ```SubtitleModel.swift,KoustSubtitleController.swift and KoustPlayerProtocol.swift``` in your project.
2. ```swift
let subTitle = KoustSubTitleController(delegate: self)
subTitle.setSubtitle(forResource: "exampleSrtFile")```
3. You should be add ```KoustSubtitleDelegate``` class.
4. Congratulations!