RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.29k stars 10.45k forks source link

Uncaught NotSupportedError: Failed to construct 'AudioContext' #3699

Closed Micjoyce closed 8 years ago

Micjoyce commented 8 years ago

Your Rocket.Chat version: (make sure you are running the latest)

When I send some audio record message in demo.rocket.chat, I got this error and I can send any more audio record message. audioRecorder.coffee:7 Uncaught NotSupportedError: Failed to construct 'AudioContext': The number of hardware contexts provided (6) is greater than or equal to the maximum bound (6). AudioContext.close() will fix this error

  stop: (cb) ->
    @recorder.stop()

    if cb?
      @getBlob cb

    @stream.getAudioTracks()[0].stop()

    @recorder.clear()

    @audio_context.close()  # close audiocontext 
    delete @audio_context
    delete @recorder
    delete @stream
danielwegener commented 8 years ago

Would be great to know which browser (which version) you are using on which OS.

Micjoyce commented 8 years ago

browser: Google Chrome 51.0.2704.103 (64) version aa7c8d23c098e96a388ffedf6698230bda650bb3-refs/branch-heads/2704@{#723} OS Mac OS X Blink 537.36 (@aa7c8d23c098e96a388ffedf6698230bda650bb3) JavaScript V8 5.1.281.65

android version: 5.1

MartinSchoeler commented 8 years ago

@Micjoyce Is this bug happening in the newer releases?

Micjoyce commented 8 years ago

This issure can be close. I make a test in demo.rocket.chat and not found againt.

MartinSchoeler commented 8 years ago

OK Thanks for the reply @Micjoyce !