view src/app/recording-control/recording-control.component.html @ 193:ac57ddba8ba9

Provide an observable in the audio service for when new audio has been loaded. The handling of errors is currently undesirable, using optional fields on the returned object. I couldn't figure out the proper Observable error flow without closing the stream.
author Lucas Thompson <dev@lucas.im>
date Thu, 23 Mar 2017 15:44:32 +0000
parents 4452f4b9f9a8
children 53ea6406d601
line wrap: on
line source
<button md-icon-button (click)="emitToggleRecording()">
  <md-icon>
    <template [ngIf]="recordingStatus == 'enabled'">mic_none</template>
    <template [ngIf]="recordingStatus == 'disabled'">mic_off</template>
    <template [ngIf]="recordingStatus == 'recording'">mic_on</template>
  </md-icon>
</button>