https://github.com/superbderrick/summerplayerview
📺 VideoPlayerView for kids, Tried to make it as similar as possible a Youtube kids App Player UI
https://github.com/superbderrick/summerplayerview
avplayer avqueueplayer hls hls-live-streaming iosvideoplayer kids player-ui streaming-video youtube youtube-kids youtubekids
Last synced: 6 months ago
JSON representation
📺 VideoPlayerView for kids, Tried to make it as similar as possible a Youtube kids App Player UI
- Host: GitHub
- URL: https://github.com/superbderrick/summerplayerview
- Owner: superbderrick
- License: mit
- Created: 2020-05-31T13:22:30.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-03T11:08:21.000Z (about 5 years ago)
- Last Synced: 2025-03-22T06:12:47.767Z (7 months ago)
- Topics: avplayer, avqueueplayer, hls, hls-live-streaming, iosvideoplayer, kids, player-ui, streaming-video, youtube, youtube-kids, youtubekids
- Language: Swift
- Homepage:
- Size: 16.3 MB
- Stars: 42
- Watchers: 4
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SummerPlayerView
[](https://travis-ci.org/Derrick/SummerPlayerView)
[](https://cocoapods.org/pods/SummerPlayerView)
[](https://cocoapods.org/pods/SummerPlayerView)
[](https://cocoapods.org/pods/SummerPlayerView)
[](https://hits.seeyoufarm.com)
## SummerPlayerView
SummerPlayerView is an iOS Custom VideoPlayerView, It tried to make it as similar as possible a Youtube kids App's Player UI## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Demo
### Light theme
### Dark theme
## Requirements
- Swift 5.0+
- iOS 13.0+
- Xcode 11+## Installation
SummerPlayerView is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'SummerPlayerView'
```## Usage
Currently `SummerPlayerView` can be instantiated programatically only
#### Programatically
```swift
import UIKit
import AVKitimport SummerPlayerView
class PlayerViewController: UIViewController {
let defaultConfig = DefaultConfig()
override func viewDidLoad() {
super.viewDidLoad()
let testContents = ContentsMaker.getContents()
let sampleTheme = ThemeMaker.getTheme()
let summerPlayerView = SummerPlayerView(configuration: defaultConfig, theme: sampleTheme,targetView: view)
summerPlayerView.delegate = self
if let currentItem = testContents.first {
summerPlayerView.setupPlayList(currentItem: currentItem, items: testContents)
}
view.addSubview(summerPlayerView)
summerPlayerView.pinEdges(targetView: view)
}
}```
#### Configuration and theme
- Configure SummerPlayerView's theme and
configurations, and target view where the video will appear like sample code- Currently, only landscape mode is supported
#### Concepts
It tried to make it as similar as possible a Youtube kids App Player UI
Through SummerPlayerView, you can understand the following basic player actions- Basic playback
- Loop playback
- Next or Previous playback with playlist
- Seek
- HLS playback with AVQueueplayer## Author
Derrick, kang.derrick@gmail.com
## License
SummerPlayerView is available under the MIT license. See the LICENSE file for more info.