Voice Recorder Widget: not working in Chrome browser.

  • lizush23
    Asked on February 22, 2017 at 10:49 AM

    Hello,

    I have a form with 10 questions and for each i add Voice recorder as an expected output (answer)

    the widget works fine for the first 6 questions but fails for the remaining 4. is there a limit on a number of widgets i can embed on a form?

     

    the error it gives seem to indicate on some limit

     

    here is the error

     

    Could not access microphone: NotSupportedError: Failed to construct 'AudioContext': The number of hardware contexts provided (6) is greater than or equal to the maximum bound (6).

     

    Thanks

  • Kiran Support Team Lead
    Replied on February 22, 2017 at 11:11 AM

    I believe that you are referring to the form http://www.jotform.me/form/70321706252446? in your account. Please allow me some time to check on this and get back to you. If you are referring to a different form, please let us know so that we can take a look and provide you with necessary assistance.

    Thank you! 

  • lizush23
    Replied on February 22, 2017 at 12:49 PM

    The error appears in Chrome browser 

    it works fine on Firefox

    It "looks" like the recording sessions don't close on Chrome and the limitation comes up

    Thank you

  • lizush23
    Replied on February 22, 2017 at 1:39 PM

    And yes this is the form

  • David JotForm Support Manager
    Replied on February 22, 2017 at 4:06 PM

    You are correct, it does not work in Chrome browser:
    Voice Recorder Widget: not working in Chrome browser Screenshot 20

    I have reported this to our back-end team. You will be notified via this thread when it gets fixed.

  • Liza Miller
    Replied on February 23, 2017 at 2:50 AM

    please provide time estimation for this bug fix as i need to start running the survey as soon as possible

    Thanks

  • lizush23
    Replied on February 23, 2017 at 2:59 AM

    I get a different kind of error.

    After i go to the 7th item on a list, the error it gives me is limitation error (the limit is set to 6)

     

    this is my error

     

    Could not access microphone: NotSupportedError: Failed to construct 'AudioContext': The number of hardware contexts provided (6) is greater than or equal to the maximum bound (6).

     

     

     

    my suspicion is that the all recording sessions remain open in the background and once it reaches its limit=6 it can no longer proceed.

    there is a small fix to resolve it

     

    https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/close

     

    var audioCtx = new AudioContext(); audioCtx.close().then(function() { ... });



    The close() method of the AudioContext Interface closes the audio context, releasing any system audio resources that it uses.

    Closed contexts cannot have new nodes created, but can decode audio data, create buffers, etc.

     

     

     

     

  • BJoanna
    Replied on February 23, 2017 at 6:29 AM

    My colleage provided same error message to our developers. 

    Unfortunately we can not provide you estimate time when this issue will be resolved. We will inform you via this thread when this issue is resolved. 

  • widgets Jotform Support
    Replied on February 24, 2017 at 4:16 AM

    @lizush23

    Hi we appreciate that, but that's not actually a solution. If you use the close() method every other widget will also be closed. We only have one microphone to provide the stream, if we do that only the last loaded widget will get the stream and the rest will be useless. But anyway, it should be okay now. We applied a patch. Just make sure to do not do a multiple recording session. You can only go until 6 that's the max. As long as the other widget is done recording you can continue recording with the rest of the widgets. In case you do multiple recordings. The widget will warn you about a microphone being inaccessible if you reach the max bounds.

    @BDAVID

    I'm not sure if you understand the error. The widget actually told you about the problem. Do not load the form in HTTP, because in chrome they only work for HTTPS pages. But anyways that's not the problem.

    Regards,
    Widget Team

  • lizush23
    Replied on February 24, 2017 at 6:17 AM

    Unfortunately i cannot limit the form to 6

    i will have to ask users to only use FireFox browser instead

    Thank you

  • widgets Jotform Support
    Replied on February 24, 2017 at 6:38 AM

    @lizush23

    no problem, like I said the patch we applied is to fixed the issue you were having. But there's a caveat, you should not do no a multi recording, and if do you can only go a max of 6 recording at the same time.

    As long your users records one after the other, you're good.

    Regards,
    Widget Team

  • lizush23
    Replied on February 24, 2017 at 11:03 AM

    Hi,

    I was thinking...

    if i use the "thank you" to redirect to another form so that the users can continue working on the experiment-it should work for more than 6 recording in total. right?

    thank you

  • David JotForm Support Manager
    Replied on February 24, 2017 at 12:19 PM

    Correct, you can redirect to a second form, so the user can do 6 more recording in the new form. You can populate the data(Such as Name, E-mail, Phone, etc.) from the first form to the second form as shown on this guide: https://www.jotform.com/help/351-How-to-Automatically-Pass-Form-Data-to-Another-Form 

    Open a new thread if you need anything else, we will be glad to assist you.

  • lizush23
    Replied on February 24, 2017 at 1:42 PM

    I will look into it,

    Thanks!

  • lizush23
    Replied on February 24, 2017 at 2:39 PM

    Hi,

    just to make sure i understand,

    I have 2 Forms 

    Form 1 and Form 2

    I populate Url of Form2 with the relevant fields , say name and email and i add the Url on Form 1 notification email and Thank you (redirect?)

    thanks

  • BJoanna
    Replied on February 24, 2017 at 2:47 PM

    Yes, you can add populated URL of second form inside of Thank you (redirect).

    Redirecting Users to a Different Page

    If you also want to send link of populated second form to your users via email, you should use Autoresponder email instead of email Notification. 

    Setting Up an Autoresponder Email