An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# SummerPlayerView
![Swift](https://img.shields.io/badge/Swift-5.0-orange.svg)

[![CI Status](https://img.shields.io/travis/Derrick/SummerPlayerView.svg?style=flat)](https://travis-ci.org/Derrick/SummerPlayerView)
[![Version](https://img.shields.io/cocoapods/v/SummerPlayerView.svg?style=flat)](https://cocoapods.org/pods/SummerPlayerView)
[![License](https://img.shields.io/cocoapods/l/SummerPlayerView.svg?style=flat)](https://cocoapods.org/pods/SummerPlayerView)
[![Platform](https://img.shields.io/cocoapods/p/SummerPlayerView.svg?style=flat)](https://cocoapods.org/pods/SummerPlayerView)
[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fsuperbderrick%2FSummerPlayerView&count_bg=%23773DC8&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=true)](https://hits.seeyoufarm.com)

![](https://github.com/superbderrick/SummerSlider/blob/master/Image/logo.jpeg)

## 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
![With Light theme](https://github.com/superbderrick/SummerPlayerView/blob/master/demo/1.gif)

### Dark theme
![With Dark theme](https://github.com/superbderrick/SummerPlayerView/blob/master/demo/2.gif)

## 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 AVKit

import 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.