forked from nstudio/nativescript-videoplayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvideoplayer.d.ts
68 lines (50 loc) · 1.39 KB
/
videoplayer.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import { View } from 'ui/core/view';
export declare class Video extends View {
android: any;
ios: any;
_emit: any;
/**
* Start playing the video.
*/
play(): void;
/**
* Pause the currently playing video.
*/
pause(): void;
/**
* Seek the video to a time.
* @param {number} time - Time of the video to seek to in milliseconds.
*/
seekToTime(time: number): void;
/**
* Returns the current time of the video duration in milliseconds.
* @returns {number} Current time of the video duration.
*/
getCurrentTime(): number;
/**
* Destroy the video player and free up resources.
*/
destroy(): void;
/**
* Mute and unmute the video.
* @param {boolean} mute - true to mute the video, false to unmute.
*/
mute(mute: boolean): void;
/**
* *** ANDROID ONLY ***
* Returns the duration of the video in milliseconds.
* @returns {number} Video duration in milliseconds.
*/
getDuration(): number;
/**
* *** ANDROID ONLY ***
* Stop playback of the video. This resets the player and video src.
*/
stop(): void;
/**
* *** ANDROID ONLY ***
* Callback to execute when the video has finished loading.
* @param {function} callback - The callback function to execute.
*/
loadingComplete(callback: Function): void;
}