@@ -5,8 +5,11 @@ declare const PLAYER_MODE_AJAX = "player_mode_ajax";
55declare const PLAYER_MODE_FETCH = "player_mode_fetch" ;
66declare const WHERE_IN_QUEUE_AT_START = "prepend" ;
77declare const WHERE_IN_QUEUE_AT_END = "append" ;
8+ declare const AFTER_LOADING_SEEK = "after_loading_seek" ;
9+ declare const AFTER_LOADING_PLAY = "after_loading_play" ;
810type typePlayerMode = typeof PLAYER_MODE_AUDIO | typeof PLAYER_MODE_AJAX | typeof PLAYER_MODE_FETCH ;
911type typeWhereInQueue = typeof WHERE_IN_QUEUE_AT_START | typeof WHERE_IN_QUEUE_AT_END ;
12+ type typeAfterLoadingAction = typeof AFTER_LOADING_SEEK | typeof AFTER_LOADING_PLAY ;
1013export interface ICoreOptions {
1114 volume ?: number ;
1215 loopQueue ?: boolean ;
@@ -52,6 +55,8 @@ export declare class PlayerCore {
5255 protected _options : ICoreOptions ;
5356 static readonly WHERE_IN_QUEUE_AT_END = "append" ;
5457 static readonly WHERE_IN_QUEUE_AT_START = "prepend" ;
58+ static readonly AFTER_LOADING_SEEK = "after_loading_seek" ;
59+ static readonly AFTER_LOADING_PLAY = "after_loading_play" ;
5560 static readonly PLAY_SOUND_NEXT = "next" ;
5661 static readonly PLAY_SOUND_PREVIOUS = "previous" ;
5762 static readonly PLAY_SOUND_FIRST = "first" ;
@@ -78,11 +83,11 @@ export declare class PlayerCore {
7883 isMuted ( ) : boolean ;
7984 setPosition ( soundPositionInPercent : number ) : Promise < void > ;
8085 protected _setPosition ( sound : ISound ) : void ;
81- setPositionInSeconds ( soundPositionInSeconds : number ) : Promise < void > ;
82- loadSound ( sound : ISound ) : Promise < ISound > ;
83- protected _loadSoundUsingAudioElement ( sound : ISound ) : Promise < void > ;
84- protected _loadSoundUsingRequest ( sound : ISound ) : Promise < void > ;
85- protected _decodeSound ( sound : ISound ) : Promise < void > ;
86+ setPositionInSeconds ( soundPositionInSeconds : number , sound ?: ISound ) : Promise < void > ;
87+ loadSound ( sound : ISound , afterLoadingAction ?: typeAfterLoadingAction ) : Promise < ISound > ;
88+ protected _loadSoundUsingAudioElement ( sound : ISound , afterLoadingAction ?: typeAfterLoadingAction ) : Promise < void > ;
89+ protected _loadSoundUsingRequest ( sound : ISound , afterLoadingAction ?: typeAfterLoadingAction ) : Promise < void > ;
90+ protected _decodeSound ( sound : ISound , afterLoadingAction ?: typeAfterLoadingAction ) : Promise < void > ;
8691 play ( { whichSound, playTimeOffset } ?: IPlayOptions ) : Promise < ISound > ;
8792 protected _play ( sound : ISound ) : Promise < void > ;
8893 protected _playAudioBuffer ( sound : ISound ) : Promise < void > ;
0 commit comments