# introvideo

> Play small video on start of the app

Latest version **1.1.1** (published 2021-04-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install introvideo
pnpm add introvideo
yarn add introvideo
bun add introvideo
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2021-04-02 |
| First published | 2021-03-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 42.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ali Subhani |
| Maintainers | aliexalter |
| Keywords | intro, video |

## Links

- npm: https://www.npmjs.com/package/introvideo
- npm.io page: https://npm.io/package/introvideo

## Dependencies (2)

- [xcode](https://npm.io/package/xcode.md) ^3.0.1
- [xml-js](https://npm.io/package/xml-js.md) ^1.6.11

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2021-04-02
- 1.1.0 — 2021-04-02
- 1.0.5 — 2021-04-02
- 1.0.4 — 2021-04-02
- 1.0.3 — 2021-04-01
- 1.0.2 — 2021-04-01
- 1.0.1 — 2021-03-28
- 1.0.0 — 2021-03-28

## README

# Cordova-Intro-Video
Plugin to play local video on iOS with filename intro.mp4 on full screen without controls and show the app once video is finished.

# Installation
`ionic cordova plugin add https://github.com/aliexalter/Cordova-Intro-Video.git`

# Ionic settings

Create Ionic Service to use this plugin in ionic-cordova-angular project
```

import { Injectable } from '@angular/core';
import { cordova, IonicNativePlugin } from '@ionic-native/core';

@Injectable({
  providedIn: 'root'
})
export class PluginService extends IonicNativePlugin {
 //name in package.json file of plugin
 static pluginName = 'introvideo'; 
 // plugin id in the plugin.xml of plugin
 static plugin = 'cordova-plugin-introvide';
 // clobbers target in the plugin.xml of plugin
 static pluginRef = 'introvideo';
 static repo = 'https://github.com/aliexalter/Cordova-Intro-Video.git';
 static platforms = ['iOS'];
 
 coolMethod(myStrMsg): Promise<any> {
    return cordova(this, 'coolMethod', {}, [myStrMsg]);
  }
}
```
import the service file in app-component.ts or any *.page.ts
use function 
`coolMethod()` to play video full screen on iOS.

# Setup Video File Intro.mp4 (IMPORTANT) Read full steps please
1. Place file *intro.mp4* in root of ionic project
2. Add Platform iOS
`ionic cordova plaform add ios`
2. Run Command
`ionic cordova prepare ios`
`ionic cordova emulate ios --livereload --target=""`
Target ccan be found from following command
`ionic cordova emulate ios --list`

# Enhancement (TODO)
1. Pass name of file and extension as string to function coolMethod to play fullscreen.

---
_Source: https://npm.io/package/introvideo · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
