Merge in v5 code

This commit is contained in:
Ibby Hadeed
2017-12-28 07:28:44 -05:00
parent d43fe72f7b
commit 0f9c21ab42
255 changed files with 11473 additions and 6501 deletions
@@ -1,14 +1,14 @@
import { Injectable } from '@angular/core';
import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
/**
* Options for the video playback using the `play` function.
*/
export interface VideoOptions {
/**
* Set the initial volume of the video playback, where 0.0 is 0% volume and 1.0 is 100%.
* For example: for a volume of 30% set the value to 0.3.
*/
* Set the initial volume of the video playback, where 0.0 is 0% volume and 1.0 is 100%.
* For example: for a volume of 30% set the value to 0.3.
*/
volume?: number;
/**
* There are two options for the scaling mode. SCALE_TO_FIT which is default and SCALE_TO_FIT_WITH_CROPPING.
@@ -60,11 +60,14 @@ export class VideoPlayer extends IonicNativePlugin {
* @returns {Promise<any>} Resolves promise when the video was played successfully.
*/
@Cordova()
play(fileUrl: string, options?: VideoOptions): Promise<any> { return; }
play(fileUrl: string, options?: VideoOptions): Promise<any> {
return;
}
/**
* Stops the video playback immediatly.
*/
@Cordova({ sync: true })
close(): void { }
close(): void {
}
}