All Projects → superbderrick → Summerslider

superbderrick / Summerslider

Licence: mit
🍭 SummerSlider that can distinguish the parts where the advertisement of the video player comes out

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Summerslider

React Splide
The Splide component for React.
Stars: ✭ 32 (-47.54%)
Mutual labels:  slider
Img Comparison Slider
Image comparison slider. Compare images before and after. Supports React, Vue, Angular.
Stars: ✭ 45 (-26.23%)
Mutual labels:  slider
React Soft Slider
Simple, fast and impartial slider
Stars: ✭ 54 (-11.48%)
Mutual labels:  slider
Lihalert
Advance animated alerts for iOS written in Swift
Stars: ✭ 34 (-44.26%)
Mutual labels:  ios-ui
React Image Comparison Slider
A React component to compare images with a slider.
Stars: ✭ 43 (-29.51%)
Mutual labels:  slider
Sizeslidebutton
A fun Swift UIControl for picking a size
Stars: ✭ 46 (-24.59%)
Mutual labels:  slider
React Grid Carousel
React responsive carousel component w/ grid layout
Stars: ✭ 29 (-52.46%)
Mutual labels:  slider
Kjplayerdemo
视频播放壳子:动态切换内核,支持边下边播边缓存的播放器方案,视频支持格式:mp4、m3u8、wav、avi,音频支持格式:midi、mp3
Stars: ✭ 60 (-1.64%)
Mutual labels:  avplayer
Yjsliderview
方便快捷轻量级的SlideView接入,模仿UITableView的API实现接口。使用Frame和约束布局都很方便。所有需要的就两个文件YJSliderView的头文件和实现文件。
Stars: ✭ 43 (-29.51%)
Mutual labels:  slider
Jcslider
🏂 A responsive slider jQuery plugin with CSS animations
Stars: ✭ 52 (-14.75%)
Mutual labels:  slider
Cocoaasyncsocket demo
基于AsyncSocket搭建即时通讯体系 . 包含TCP连接 , 消息发送 , 消息接收 , 心跳处理 ,断网重连 , 消息超时 , 消息分发 , 数据库结构设计 , 消息丢失等 . 以及UI设计, 文本表情消息/语音消息/图片消息/视频消息/文件消息/撤回消息/提示语消息的实现思路讲解
Stars: ✭ 981 (+1508.2%)
Mutual labels:  ios-ui
Range Slider
The simplest JavaScript custom range slider ever!
Stars: ✭ 41 (-32.79%)
Mutual labels:  slider
React Native Ezplayer
EZPlayer component for react-native apps
Stars: ✭ 47 (-22.95%)
Mutual labels:  avplayer
Mcplayerkit
MCPlayerKit is iOS Player, PlayerCoreType: AVPlayer can use play some video, IJKPlayer type can play video, Live ...
Stars: ✭ 34 (-44.26%)
Mutual labels:  avplayer
React Carousel
Lightweight carousel component for react
Stars: ✭ 56 (-8.2%)
Mutual labels:  slider
Ios P2p Engine
Let your viewers become your unlimitedly scalable CDN.
Stars: ✭ 31 (-49.18%)
Mutual labels:  avplayer
Youtube Extension
🔴YouTube Extension🧰>80 Features ⭐Please document, code or donate📌Tidy📌Longest-standing(2012)(Users>350000)⋮🎞️🎛️🎧⚙️🎬🔊☕🎨🧩🧪📈⏯️(Player: Repeat Screenshot Rotate; Hide related video distraction. Always expand video Description. Playback speed. Video Quality bandwidth H.264 electricity. Player Size Full Window. Themes Customization. Statistics. Reverse Playlist YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube Youtube enhancer YouTube app YouTube video YouTube YouTube YouTube api v3 YouTube playback YouTube player VP8 VP9 AV1 vidIQ tubebuddy download adblocker adblock ads sponsorblock addon youtube music ⭐ youtube premium css css4 html5 ytdl youtube-dl invidious iridium ParticleCore youtube+ youtube++ youtube-plus maia-yt youtube nonstop youtube control center vlogger vlog h264ify h264 m.youtube.com music.youtube.com studio.youtube youtube mobile youtube studio ⭐ kids Vanced gaming.youtube.com gaming youtubecenter freetube lite-youtube-embed newpipe youtube-dl-gui mps-youtube nuclear pytube awesome youtubers youtube downloader 8k 4k 60fps 30fps youtubeexplode vidgear k-lite tubebuddy adobe apple ios iphone design simplify ffmpeg premiere designer annoyance youtube upload
Stars: ✭ 1,027 (+1583.61%)
Mutual labels:  youtube-video
Avplayeroverlay
AVPlayer with custom controls, full screen mode, subtitles (.srt), Picture-In-Picture and AirPlay features.
Stars: ✭ 59 (-3.28%)
Mutual labels:  avplayer
Youtube In Background
YiB is an Android app, which extracts audio from YouTube videos and plays them in background.
Stars: ✭ 58 (-4.92%)
Mutual labels:  youtube-video
Tiny Swiper
Ingenious JavaScript Carousel powered by wonderful plugins. Lightweight yet extensible. Import plugins as needed, No more, no less.
Stars: ✭ 1,061 (+1639.34%)
Mutual labels:  slider

SummerSlider

Swift Swift Swift

CI Status Version License Platform HitCount

SummerSlider

SummerSlider is an iOS Custom Slider library It's available with variety usecases like (typically custome ui slider and video-related apps) Besides the repository introduces various usecase samples with SummerSlider

UseCases

  • Youtube Player UI scenario
    It s s some parts for advertisement separator sections during entire video duration

  • IMA SDK (VAST) with AVPLAYER

If you used Google IMA SDK with AVPLAYER , the summer slider is a very useful and suitable vast sample code was intergrated and explained how to use for some vase usecases such as midrole and prerole cases

Demo

Basic

demo1

Usecase(IMA SDK)

demo2

Requirements

  • Swift 3,4.0,5.0
  • iOS 8.0+
  • Xcode 8

How to install

SummerSlider is available through CocoaPods. To install it, simply add the following line to your Podfile:

Swift 3.0

pod 'SummerSlider', '~>0.2.0'

Swift 4.0

pod 'SummerSlider', '~>0.3.0'

Swift 5.0

pod 'SummerSlider', '~>0.4.0'

Classic and ancient way

Copy into your project the following files: SummerSlider.swift , Constants.swift, HorizontalSlider.swift,Slider.swift,SliderDrawingProtocol.swift,SliderFactory.swift, SummerSliderTypes.swift,VerticalSlider.swift,

How to use it?

First way (User Interface):

Add an UISlider outlet to your view using the User Interface and set SummerSlider as the custom class. Mostly the exposed properties are marked with @IBInspectable, so you can customize them in storyboard's attributes inspector and preview it directly.

Link it with the outlet property if you want to access its properties:

@IBOutlet weak var sampleSlider: SummerSlider!

Simply customize it! (take a look at -Customization- section)

var sampleArray = Array<Float>()
sampleArray = [0,12,23,34,45,56,77,99]
sampleSlider.selectedBarColor = UIColor.white
sampleSlider.unselectedBarColor = UIColor.black
sampleSlider.markColor = UIColor.orange
sampleSlider.markWidth = 2.0
sampleSlider.markPositions = sampleArray

Second way (Using code) - Preferred

It is really easy to set it! Firstly, import SummerSlider.

import SummerSlider

Instantiate and customize it (again, take a look at -Customization- section). Finally add it to the desired view as usual:


let testRect1 = CGRect(x:30 ,y:70 , width:300 ,height:30)
var marksArray1 = Array<Float>()
marksArray1 = [0,10,20,30,40,50,60,70,80,90,100]
secondSlider = SummerSlider(frame: testRect1)
secondSlider.selectedBarColor = UIColor.blue
secondSlider.unselectedBarColor = UIColor.red
secondSlider.markColor = UIColor.yellow
secondSlider.markWidth = 2.0
secondSlider.markPositions = marksArray1
self.view.addSubview(secondSlider)

Setting the marks

You can set the marks using a percentage system from 0 to 100 (Percent). Set all the marks in the markPositions array property:

summerSlider.markPositions = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100]

Customization

Here you can see a bunch of parameters that you can change:

Marks

  • markColor : UIColor - Customize the color of the marks.
  • markWidth: Float - Customize the width of the marks.
  • markPositions: [Float] - Set in a percentage system from 0 to 100 where the marks should be placed.

Bar colors

  • selectedBarColor: UIColor - Customize the color of the selected side of the slider.
  • unselectedBarColor: UIColor - Customize the color of the unselected side of the slider.

Author

SuperbDerrick, [email protected]

References

Please Let me know pull request or if you want to use this library in your application.

License

SummerSlider is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].