Skip to content

TakiRahal/cordova-plugin-splashscreenvideo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SplashScreen Video for Cordova Application

1. Demo

Demo Android : https://www.youtube.com/watch?v=jd76Ij6KHJw

Demo iOS : https://www.youtube.com/watch?v=ZxsdN5_lLa0

2. Introduction

This tutorial shows how to displays a video splash screen on cordva based project

3. Supported Platforms

  • Android

  • iPhone

  • iPad

4. Compatibility

  • Cordova 3.5+

  • Android 4.4+

  • iOS 10+

5. Installation

  • Download Cordova project : cordova create Your_Cordova_Project

  • Install plugin SplashScreen : cordova plugin add cordova-plugin-splashscreen

    => Recommanded 5.0.3 : Comptabile with iPhoneX, iPhoneXS...
    cordova plugin add cordova-plugin-splashscreen@5.0.3

  • Add Platforms :

    • cordova platform add android

    • cordova platform add ios

  • For platform Android

    • Copy of content from file cordova-plugin-splashscreenvideo/src/android/SplashScreenVideo.java,
      and past in your project: Your_Cordova_Project/platforms/android/app/src/main/java/org/apache/cordova/splashscreen/SplashScreen.java

    • Create new folder in your project "raw" : Your_Cordova_Project/platforms/android/app/src/main/res/raw

    • Add video animation, int this folder (raw) with name "start_animation.mp4"

    • Add first frame (*.png) of your video to folder /res/screen/android

    • Run : cordova prepare

    • Run your project : cordova run android

  • For platform iOS

    • Open Your Project with Xcode

    • Copy two files (ibiVideo.h, ibiVideo.m) from cordova-plugin-splashscreenvideo/src/ios/
      to iOSNativePlatforms/Classes

      => Copy reference and select checkbox "Copy Items if needed" and "Crerate folder reference" and "Add to targets"

    • Copy of content from cordova-plugin-splashscreenvideo/src/ios/AppDelegate.m and Past in iOSNativePlatforms/Classes/AppDelegate.m

    • Copy source of video animation "start_animation.mp4" to iOSNativePlatforms/Resources
      and check checkbox "Copy items if needed" and "Create folder references" and "Add to targets"

    • Add first frame (*.png) of your video to folder /res/screen/ios

    • Run : cordova prepare

    • Run your project

About

Cordova Plugin splashscreenvideo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published