Revert "chore(package): bump dependencies and lint rules"

This reverts commit 21ad4734fa.
This commit is contained in:
Daniel
2018-03-16 22:04:01 +01:00
parent 21ad4734fa
commit 6c938bfdb7
178 changed files with 4221 additions and 10592 deletions
+16 -13
View File
@@ -1,7 +1,8 @@
import { Injectable } from '@angular/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
export interface TranscodeOptions {
/** The path to the video on the device. */
fileUri: string;
@@ -49,6 +50,7 @@ export interface TranscodeOptions {
}
export interface TrimOptions {
/** Path to input video. */
fileUri: string;
@@ -63,9 +65,11 @@ export interface TrimOptions {
/** Progress on transcode. info will be a number from 0 to 100 */
progress?: (info: any) => void;
}
export interface CreateThumbnailOptions {
/** The path to the video on the device */
fileUri: string;
@@ -83,14 +87,18 @@ export interface CreateThumbnailOptions {
/** Quality of the thumbnail (between 1 and 100). */
quality?: number;
}
export interface GetVideoInfoOptions {
/** The path to the video on the device. */
fileUri: string;
}
export interface VideoInfo {
/** Width of the video in pixels. */
width: number;
@@ -108,6 +116,7 @@ export interface VideoInfo {
/** Bitrate of the video in bits per second. */
bitrate: number;
}
/**
@@ -147,6 +156,7 @@ export interface VideoInfo {
})
@Injectable()
export class VideoEditor extends IonicNativePlugin {
OptimizeForNetworkUse = {
NO: 0,
YES: 1
@@ -167,9 +177,7 @@ export class VideoEditor extends IonicNativePlugin {
@Cordova({
callbackOrder: 'reverse'
})
transcodeVideo(options: TranscodeOptions): Promise<string> {
return;
}
transcodeVideo(options: TranscodeOptions): Promise<string> { return; }
/**
* Trim a video
@@ -180,9 +188,7 @@ export class VideoEditor extends IonicNativePlugin {
callbackOrder: 'reverse',
platforms: ['iOS']
})
trim(options: TrimOptions): Promise<string> {
return;
}
trim(options: TrimOptions): Promise<string> { return; }
/**
* Create a JPEG thumbnail from a video
@@ -192,9 +198,7 @@ export class VideoEditor extends IonicNativePlugin {
@Cordova({
callbackOrder: 'reverse'
})
createThumbnail(options: CreateThumbnailOptions): Promise<string> {
return;
}
createThumbnail(options: CreateThumbnailOptions): Promise<string> { return; }
/**
* Get info on a video (width, height, orientation, duration, size, & bitrate)
@@ -204,7 +208,6 @@ export class VideoEditor extends IonicNativePlugin {
@Cordova({
callbackOrder: 'reverse'
})
getVideoInfo(options: GetVideoInfoOptions): Promise<VideoInfo> {
return;
}
getVideoInfo(options: GetVideoInfoOptions): Promise<VideoInfo> { return; }
}