Kagami / vmsg

:musical_note: Library for creating voice messages
https://kagami.github.io/vmsg/
Creative Commons Zero v1.0 Universal
348 stars 58 forks source link

Remove microphone indicator #19

Closed DmitriyMaximov closed 6 years ago

DmitriyMaximov commented 6 years ago

Microphone indicator is not hidden after recording. It is described here https://stackoverflow.com/questions/42786056/removing-microphone-indicator-in-google-chrome

In vmsg we need save stream in initAudio() method:

getUserMedia({audio: true}).then(stream => {
      this.stream = stream;
...

and stop tracks in close() method, I think. Like this (close): if (this.stream) this.stream.getTracks().forEach(track => track.stop());

Kagami commented 6 years ago

This should be fixed in #17.

DmitriyMaximov commented 6 years ago

I'm sorry, I was looking at the npm package. Can you update the npm package?

Kagami commented 6 years ago

Sure, published 0.3.5.

DmitriyMaximov commented 6 years ago

Super! Thank you very much!