Skip to content

Commit debfcc8

Browse files
committed
new build
1 parent ffa35df commit debfcc8

File tree

5 files changed

+49
-45
lines changed

5 files changed

+49
-45
lines changed

dist/index.js

Lines changed: 36 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/library/core.d.ts

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ declare const PLAYER_MODE_AJAX = "player_mode_ajax";
55
declare const PLAYER_MODE_FETCH = "player_mode_fetch";
66
declare const WHERE_IN_QUEUE_AT_START = "prepend";
77
declare 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";
810
type typePlayerMode = typeof PLAYER_MODE_AUDIO | typeof PLAYER_MODE_AJAX | typeof PLAYER_MODE_FETCH;
911
type typeWhereInQueue = typeof WHERE_IN_QUEUE_AT_START | typeof WHERE_IN_QUEUE_AT_END;
12+
type typeAfterLoadingAction = typeof AFTER_LOADING_SEEK | typeof AFTER_LOADING_PLAY;
1013
export 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

Comments
 (0)