VideoSplashKit - UIViewController library for creating easy intro pages with background videos

Overview

Build Status Gitter Gitter CocoaPods

VideoSplashKit - Video based UIViewController

alt tag

Introduction

Requires iOS 8 or later and Xcode 6.1+
Swift support uses dynamic frameworks and is therefore only supported on iOS > 8.

Installation

To install via CocoaPods add this line to your Podfile.

use_frameworks!

and

pod 'VideoSplashKit'

or if you are using Swift4

pod 'VideoSplashKit', :git => 'https://github.com/svtek/VideoSplashKit/VideoSplashKit.git', :branch => 'swift4'

Then, run the following command:

$ pod install

Usage

import VideoSplashKit

class ViewController: VideoSplashViewController {

  override func viewDidLoad() {
    super.viewDidLoad()
    let url = NSURL.fileURLWithPath(NSBundle.mainBundle().pathForResource("test", ofType: "mp4")!)
    self.videoFrame = view.frame
    self.fillMode = .ResizeAspectFill
    self.alwaysRepeat = true
    self.sound = true
    self.startTime = 12.0
    self.duration = 4.0
    self.alpha = 0.7
    self.backgroundColor = UIColor.blackColor()
    self.contentURL = url
    self.restartForeground = true
  }
}

Authors

Omer Karisman

Lead UI/UX @ MojiLaLa
Twitter Dribble Github
Sahin Boydas

Co-Founder @ MojiLaLa
LinkedIn
Comments
  • AVPlayer observer error

    AVPlayer observer error

    When running on ios 9 i am getting an error, an instance 0x7fd8f1395bb0 of class AVPlayer was deallocated while key value observers were still registered with it. This happens after the view controller has gone out of focus and another view controller is presented.

    opened by Reedyuk 5
  • problem running example without swift lint

    problem running example without swift lint

    I simply downloaded the library to see how it looks with the airplane video, but got this message:

    myderivedDatalocation/DerivedData/VideoSplash-hewgngxkasswrscufpaujewroedd/Build/Intermediates/VideoSplash.build/Debug-iphoneos/VideoSplash.build/Script-C3CEBF9F1BCCA22200CB209E.sh: line 2: /usr/local/bin/swiftlint: No such file or directory

    I simply downloaded a zip, unzipped it and opened xcodeproj.

    Any idea how to simply look check how this library looks like running on an iphone ?

    opened by ammoqq 4
  • get notified when video is ready to play

    get notified when video is ready to play

    in case the movie is big , it could take a long time to load. this notifies the implementing subclass when the AVPlayer changed to AVPlayerStatus.ReadyToPlay

    opened by dannyshmueli 2
  • Swift 2.0 Support

    Swift 2.0 Support

    Hello What are the plans for supporting Swift 2.0 in the future? They changed quite a lot in the new specification, and this framework makes it impossible to build an app in iOS 9 and XCode 7

    opened by iliraga 2
  • Issues when present modal view from splash view and PIP

    Issues when present modal view from splash view and PIP

    Hi

    I use this pod for a couple weeks and discover some issues when present modal view from video splash view.

    When I present a modal view, in my case a custom modal view for mail login, or facebook/google login (SFSafariViewController) with SDK. First issue is a new video player is added to splash view each time I dismiss modal view. Second issue is if I rotate screen in modal view and then dismiss modal view, movie players frame is not adjusted and follow content view frame, then I make it work by set movie player view's autoresizemask, but it don't work reliably each time, so I endup with solution in autolayout.

    If I set minimum target to iOS 9, picture in picture is activate for movie player view when I push home button (iPad Air 2) . Then you get a thumbnail screen with splash view video running :)

    opened by sunflash 1
  • add line 77 for preventing video size gets changed when the video gets double tapped

    add line 77 for preventing video size gets changed when the video gets double tapped

    When a user double tapped the video, the video size returns to AspectFit. It interrupts the consistency of the video. Adding my change can solve the problem, although I am not sure this is the best solution for it.

    opened by jyxia 1
  • Compile errors with latest version of Swift and X-code beta 7.

    Compile errors with latest version of Swift and X-code beta 7.

    There were various errors on building and converting to latest version. I have fixed those errors and if you'll add me as a collaborator i would be happy to push the changes.

    opened by jspenc72 1
  • Background color glitch

    Background color glitch

    The movie player was covering the entire frame with a black background so even if you set a background color it wouldn't show and you would see a black flicker before the video started playing. Fixed the issue by setting the movie player background color on viewDidAppear.

    opened by frostover 0
  • Correct the spelling of CocoaPods in README

    Correct the spelling of CocoaPods in README

    This pull requests corrects the spelling of CocoaPods 🤓 https://github.com/CocoaPods/shared_resources/tree/master/media

    Created with cocoapods-readme.

    opened by ReadmeCritic 0
  • Video keeps playing in background

    Video keeps playing in background

    Really like VideoSplashKit and been using it for some time. Recently, I decided to change the sound to on; which pulls from a Firebase Remote Config function. All works well until I change views.

    For some reason, when the user clicks a button to transition to a different ViewController the sound from the video still continues to play... Anyone know how to get the sound to stop and or the video to stop playing when I switch to a different view.

    Thank you, John

    opened by dortoh 0
  • Is not releasing the device memory

    Is not releasing the device memory

    Even when I finish my ViewController, the video continues to using device memory and the threads created are not finalized.

    captura de tela 2016-06-30 as 06 00 54

    is there any way to clear the memory that I do not know?

    opened by antonyalkmim 0
  • VideoSplashKit stop user music

    VideoSplashKit stop user music

    When my app opens the controller with VideoSplashKit, the users music stops, its a doubt a have to handle for background music, or VideoSplashKit doesn't support that?

    Thank you!

    opened by JeanVinge 0
  • App craches using facebookSDK with VideoSplashKit

    App craches using facebookSDK with VideoSplashKit

    I Don't know why but my app is crashing because of this line of code,

            self.moviePlayer.player?.addObserver(
              self,
              forKeyPath: "status",
              options: .New,
              context: nil)
    

    observation: when commenting this line of code, i solve the error

    the problem is, i have a button that make the login with facebook, and the video in the background, using VideoSplashKit, when i make the login with facebook, we go to the facebook webview, and when going back to the app i get this error:

    *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'An instance 0x13ddf3f10 of class AVPlayer was deallocated while key value observers were still registered with it. Current observation info: <NSKeyValueObservationInfo 0x13f303980> ( <NSKeyValueObservance 0x13ddc01f0: Observer: 0x13dd76fd0, Key path: status, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x13df64dd0> )' *** First throw call stack: (0x18269edb0 0x181d03f80 0x18269ecf8 0x182ff2d80 0x1821458e8 0x101035a3c 0x10103b4e4 0x182654d50 0x182652bb8 0x18257cc50 0x183e64088 0x187866088 0x1000b3784 0x18211a8b8) libc++abi.dylib: terminating with uncaught exception of type NSException

    opened by JeanVinge 0
Releases(1.2.0)
Owner
Sahin Boydas
CEO & Founder of RemoteTeam.com
Sahin Boydas
Presentation helps you to make tutorials, release notes and animated pages.

Presentation helps you to make tutorials, release notes and animated pages.

HyperRedink 3k Jan 5, 2023
SwiftyWalkthrough is a library for creating great walkthrough experiences in your apps, written in Swift.

SwiftyWalkthrough is a library for creating great walkthrough experiences in your apps, written in Swift. You can use the library to allow users to navigate and explore your app, step by step, in a predefined way controlled by you.

Rui Costa 370 Nov 24, 2022
Onboarding - Completed project for creating Onboarding screens in SwiftUI

Onboarding Completed project for creating Onboarding screens in SwiftUI.

Khawlah Bawazir 0 Jan 13, 2022
BWWalkthrough is a simple library that helps you build custom walkthroughs for your iOS App

What is BWWalkthrough? BWWalkthrough (BWWT) is a class that helps you create Walkthroughs for your iOS Apps. It differs from other similar classes in

Yari @bitwaker 2.8k Jan 4, 2023
SwiftUI library for a walkthrough or onboarding flow with tap actions

Concentric Onboarding iOS library for a walkthrough or onboarding flow with tap actions written with SwiftUI We are a development agency building phen

Exyte 955 Jan 4, 2023
iOS library Paper Onboarding is a material design UI slider written on Swift.

iOS library Paper Onboarding is a material design UI slider written on Swift. We specialize in the designing and coding of custom UI

Ramotion 3.2k Jan 5, 2023
Simple coach mark library written in Swift

Minamo Simple coach mark library written in Swift Usage Initialize let rippeleView = RippleView() rippeleView.tintColor = UIColor(red: 0.3, green: 0.7

yukiasai 248 Nov 24, 2022
Codepath-intro-prework - Hello World iOS App | Prework Project for CodePath Intro to Mobile App Development

Hello World iOS App App Description Prework Project for CodePath Intro to Mobile

null 0 Jan 25, 2022
DrawerKit lets an UIViewController modally present another UIViewController in a manner similar to the way Apple's Maps app works.

DrawerKit What is DrawerKit? DrawerKit is a custom view controller presentation mimicking the kind of behaviour in the Apple Maps app. It lets any vie

Babylon Health 773 Dec 27, 2022
Swipe between pages with an interactive title navigation control. Configure horizontal or vertical chains for unlimited pages amount.

SlideController is a simple and flexible UI component fully written in Swift. Built using power of generic types, it is a nice alternative to UIPageVi

Touchlane 409 Dec 6, 2022
Swipe between pages with an interactive title navigation control. Configure horizontal or vertical chains for unlimited pages amount.

SlideController is a simple and flexible UI component fully written in Swift. Built using power of generic types, it is a nice alternative to UIPageVi

Touchlane 411 Jan 5, 2023
Media view which subclasses UIImageView, and can display & load images, videos, GIFs, and audio and from the web, and has functionality to minimize from fullscreen, as well as show GIF previews for videos.

I've built out the Swift version of this library! Screenshots Description ABMediaView can display images, videos, as well as now GIFs and Audio! It su

Andrew Boryk 80 Dec 20, 2022
Creating a blurred window background in Mac Catalyst

TransparentChrome In response to a developer question, I looked for the easiest way to provide a translucent full-window chrome with a blurred backgro

Steven Troughton-Smith 37 Dec 2, 2022
Simple application for creating QR code with a background

BeautifyQR Импортирует исходный QR-код из галереи Накладывает его на выбранную картинку с фоном Полученную картинку можно вынести виджетом на домашний

Dmitry Demianov 1 Nov 28, 2021
IOS-Prework - CodePath intro to iOS prework.

Hello World App Submitted by: Emmanuel Assumang Time spent: 1.5 hours spent in total App Description This is a simple mobile app programmed in Swift t

null 0 Dec 31, 2021
Codepath-prework - label color-changing app for codepath intro prework

codepath pre-work App Description An app that changes the color of the Hello Wor

null 0 Jan 30, 2022
CodePath-iOS-Prework - Prework project for Intro to Mobile App Development course on CodePath

CodePath iOS Prework App Description This app has an input field, text, and seve

Russell Elliott 0 Feb 2, 2022
ColorMix-by-IUKit - colorMix app by Intro to app development in Swift

colorMix-by-IUKit colorMix app by "Intro to app development in Swift" In this ap

null 0 Feb 11, 2022
Intro to iOS Workshop - Demo App

WeArePennStateApp Intro to iOS Workshop - Demo App We Are, Penn State! Requirements: Build an app in Swift that allows you to perform the We Are Penn

Kelly Hutchison 2 Feb 14, 2022
Swift UI component - Stories instagram, slideshow, crypto wallet intro

SwiftUI and Combine - Stories intro multi-platform widget Features Long tap - pause stories showcase Tap - next story Leeway - pause before start stor

Igor 9 Dec 26, 2022