Skip to content

Commit 305f5b6

Browse files
committed
new build
1 parent 8e80d35 commit 305f5b6

File tree

6 files changed

+63
-35
lines changed

6 files changed

+63
-35
lines changed

dist/index.js

Lines changed: 51 additions & 23 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: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ISound, ISoundAttributes, ISoundSource, typeSoundStates } from './sound';
1+
import { ISound, ISoundAttributes, ISoundSource } from './sound';
22
import { PlayerAudio, IAudioOptions } from './audio';
33
declare const PLAYER_MODE_AUDIO = "player_mode_audio";
44
declare const PLAYER_MODE_AJAX = "player_mode_ajax";
@@ -27,9 +27,6 @@ export interface ISoundsQueueOptions {
2727
soundAttributes: ISoundAttributes;
2828
whereInQueue?: typeWhereInQueue;
2929
}
30-
interface IDecodeSoundOptions {
31-
sound: ISound;
32-
}
3330
export interface IPlayOptions {
3431
whichSound?: number | string | undefined;
3532
playTimeOffset?: number;
@@ -80,11 +77,12 @@ export declare class PlayerCore {
8077
unMute(): void;
8178
isMuted(): boolean;
8279
setPosition(soundPositionInPercent: number): Promise<void>;
80+
protected _setPosition(sound: ISound): void;
8381
setPositionInSeconds(soundPositionInSeconds: number): Promise<void>;
84-
protected _loadSound(sound: ISound): Promise<void>;
82+
loadSound(sound: ISound): Promise<ISound>;
8583
protected _loadSoundUsingAudioElement(sound: ISound): Promise<void>;
8684
protected _loadSoundUsingRequest(sound: ISound): Promise<void>;
87-
protected _decodeSound({ sound }: IDecodeSoundOptions): Promise<void>;
85+
protected _decodeSound(sound: ISound): Promise<void>;
8886
play({ whichSound, playTimeOffset }?: IPlayOptions): Promise<ISound>;
8987
protected _play(sound: ISound): Promise<void>;
9088
protected _playAudioBuffer(sound: ISound): Promise<void>;
@@ -99,7 +97,7 @@ export declare class PlayerCore {
9997
protected _checkMimeTypesSupport(mediaMimeTypes: string[]): boolean;
10098
pause(): Promise<ISound>;
10199
stop(): Promise<ISound>;
102-
protected _stop(sound: ISound, soundState: typeSoundStates): Promise<void>;
100+
protected _stop(sound: ISound): Promise<void>;
103101
next(): Promise<ISound>;
104102
previous(): Promise<ISound>;
105103
first(): Promise<ISound>;

dist/library/sound.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,14 @@ export interface ISound extends ISoundAttributes, ISoundSource {
5656
playTimeOffset: number;
5757
startTime: number;
5858
playTime: number;
59-
elapsedPlayTime: number;
6059
playedTimePercentage: number;
6160
state: typeSoundStates;
6261
loadingProgress: number;
6362
firstTimePlayed: boolean;
6463
isConnectToPlayerGain: boolean;
6564
durationSetManually: boolean;
65+
elapsedPlayTime: number;
66+
seekPercentage: number;
6667
getCurrentTime(): number;
6768
getDuration(): number;
6869
setDuration(duration: number): void;
@@ -90,7 +91,6 @@ export declare class PlayerSound implements ISound {
9091
audioBufferDate: Date;
9192
playTimeOffset: number;
9293
startTime: number;
93-
elapsedPlayTime: number;
9494
playTime: number;
9595
playedTimePercentage: number;
9696
state: typeSoundStates;
@@ -99,6 +99,8 @@ export declare class PlayerSound implements ISound {
9999
durationSetManually: boolean;
100100
firstTimePlayed: boolean;
101101
isConnectToPlayerGain: boolean;
102+
elapsedPlayTime: number;
103+
seekPercentage: number;
102104
onLoading: IOnProgress;
103105
onPlaying: IOnProgress;
104106
onEnded: IOnEnded;

0 commit comments

Comments
 (0)