view src/app/app.component.html @ 132:36f57a21637c

Add a service for audio recording which uses relies on being provided implementations of a provider to a MediaStream and a MediaRecorder. Include a stub for use when recording isn't supported.
author Lucas Thompson <dev@lucas.im>
date Mon, 20 Mar 2017 13:24:36 +0000
parents c02c76b94148
children 262995cfd3e6
line wrap: on
line source
<md-toolbar color="primary">
  <md-icon svgIcon="duck"></md-icon>

  <span class="app-toolbar-filler"></span>

  <app-playback-control></app-playback-control>
  <button md-icon-button>
    <md-icon>mic_off</md-icon>
  </button>

  <!-- This fills the remaining space of the current row -->
  <span class="app-toolbar-filler"></span>


  <app-audio-file-open (fileOpened)="onFileOpened($event)"></app-audio-file-open>
  <!-- menu opens when trigger button is clicked -->
  <button md-icon-button (click)="sidenav.toggle()">
    <md-icon>extension</md-icon>
  </button>
</md-toolbar>

<md-sidenav-container>
  <md-sidenav #sidenav align="start" mode="over">
    <app-feature-extraction-menu
      (requestOutput)="extractFeatures($event)"
      [disabled]="!canExtract">
    </app-feature-extraction-menu>
  </md-sidenav>
  <app-waveform
    [audioBuffer]="audioBuffer"
    ></app-waveform>
  <ugly-progress-spinner [isVisible]="isProcessing"></ugly-progress-spinner>
</md-sidenav-container>