Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-83570

Audio bitrate configuration owned by tiny_recordrtc can lead to potential bug

XMLWordPrintable

    • 2
    • Team Hedgehog 2024 Review 4, Team Hedgehog 2024 Sprint 4.1

      In MDL-78349, a bug was discovered where users could input an audio bit rate too low for the audio processor/converter. It was proposed that a select menu with a range of valid bit rates could be used in place of a the current free-entry number that could have invalid values inputted by the user.

      ==========================

      Why change the input text to the select field?

      Audio bitrate configuration owned by tiny_recordrtc can lead to potential bug.

      If users set the audio bit rate to a non-supported value, such as 1000, Firefox will display an error in the console, while Chrome will create the recorded audio file successfully, but it will have no sound. I tested this on Ubuntu 24.04.

      The minimum bit rate threshold varies depending on the audio format. During my tests with Firefox version 131.0.3, which uses the audio/Ogg format, I found that the minimum supported value is 24000. In Chrome 129.0.6668.70, which uses the audio/MP4 format, the minimum supported value is 2400.

      Due to these differences, the input from a text field was changed to a select field, offering options that support both Ogg and MP4 audio formats.

            meirza.arson@moodle.com Meirza
            meirza.arson@moodle.com Meirza
            David Woloszyn David Woloszyn
            Safat Shahin Safat Shahin
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 56 minutes
                4h 56m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.