Uploaded image for project: 'Apache Guacamole - Contributions'
  1. Apache Guacamole - Contributions
  2. GUAC-1212

Creating Guacamole.AudioChannel.context fails if user has multiple tabs with sound open

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 0.9.6
    • Fix Version/s: 0.9.8
    • Component/s: guacamole-common-js
    • Labels:
    • Environment:
      Chrome 43 , Firefox 38
    • Sprint:
      DEV 2015-07-03
    • Story Points:
      2

      Description

      If there are 6 or more tabs open in the browser, guacamole fails to load. The error is

      Uncaught DOMException: Failed to construct 'AudioContext': The number of hardware contexts provided (6) is greater than or equal to the maximum bound (6).

      The following code from AudioContext.js throws an exception when called. Wrapping the call to new AudioContext() in a try/catch block fixes the problem (although audio is disabled).

      if (window.AudioContext) {
          	Guacamole.AudioChannel.context = new AudioContext();
      }

        Attachments

          Activity

            People

            Assignee:
            mike.jumper Michael Jumper
            Reporter:
            syoung@hatsize.com syoung
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: