nativescript-audio
Advanced tools
Comparing version 4.3.6 to 5.0.0
@@ -251,3 +251,4 @@ "use strict"; | ||
if (_this._player) { | ||
common_1.TNS_Player_Log('seekTo', time); | ||
time = time * 1000; | ||
common_1.TNS_Player_Log('seekTo seconds', time); | ||
_this._player.seekTo(time); | ||
@@ -254,0 +255,0 @@ _this._sendEvent(options_1.AudioPlayerEvents.seek); |
@@ -158,2 +158,8 @@ import { Observable } from 'tns-core-modules/data/observable'; | ||
changePlayerSpeed(speed: number): void; | ||
/** | ||
* ** iOS ONLY ** - Begins playback at a certain delay, relative to the current playback time. | ||
* @param time [number] - The time to start playing the audio track at. | ||
*/ | ||
playAtTime(time: number); | ||
} | ||
@@ -222,3 +228,4 @@ export interface TNSRecordI { | ||
/** | ||
* Seeks to specific time. | ||
* Seeks to specific time in seconds. | ||
* @param time [number] - The position of the track duration to seek to. | ||
*/ | ||
@@ -225,0 +232,0 @@ seekTo(time: number): Promise<any>; |
{ | ||
"name": "nativescript-audio", | ||
"version": "4.3.6", | ||
"version": "5.0.0", | ||
"description": "NativeScript plugin to record and play audio.", | ||
@@ -5,0 +5,0 @@ "main": "audio", |
63556
1551