Skip to content

Commit

Permalink
Forces position of audio at 0 on playser stop (#659)
Browse files Browse the repository at this point in the history
  • Loading branch information
digimezzo authored Aug 22, 2024
1 parent b018fd1 commit 6f44097
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/services/file/file.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class FileService implements FileServiceBase {

private async enqueueGivenParameterFilesAsync(parameters: string[]): Promise<void> {
const safeParameters: string[] = this.getSafeParameters(parameters);
this.logger.info(`Found parameters: ${safeParameters.join(', ')}`, 'FileService', 'enqueueParameterFilesAsync');
this.logger.info(`Found parameters: ${safeParameters.join(', ')}`, 'FileService', 'enqueueGivenParameterFilesAsync');

try {
const trackModels: TrackModel[] = [];
Expand Down
1 change: 1 addition & 0 deletions src/app/services/playback/audio-player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export class AudioPlayer implements AudioPlayerBase {
}

public stop(): void {
this.audio.currentTime = 0;
this.audio.pause();
}

Expand Down

0 comments on commit 6f44097

Please sign in to comment.