Mercurial > hg > ugly-duckling
changeset 453:8113b6f5a75e
Add a mimeType property to audio items.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Thu, 29 Jun 2017 14:35:51 +0100 |
parents | b4372cdf495c |
children | f93582c38b70 |
files | src/app/analysis-item/analysis-item.component.ts src/app/app.component.ts |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/app/analysis-item/analysis-item.component.ts Thu Jun 29 14:34:16 2017 +0100 +++ b/src/app/analysis-item/analysis-item.component.ts Thu Jun 29 14:35:51 2017 +0100 @@ -30,6 +30,7 @@ export interface PendingRootAudioItem extends Item { uri: string; + mimeType?: string; } export interface RootAudioItem extends PendingRootAudioItem { audioData: AudioBuffer;
--- a/src/app/app.component.ts Thu Jun 29 14:34:16 2017 +0100 +++ b/src/app/app.component.ts Thu Jun 29 14:35:51 2017 +0100 @@ -164,7 +164,8 @@ hasSharedTimeline: true, title: title, description: new Date().toLocaleString(), - id: `${++this.countingId}` + id: `${++this.countingId}`, + mimeType: file.type } as PendingRootAudioItem; this.rootAudioItem = pending as RootAudioItem; // TODO this is silly