Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-26697 mediaplugin fixes and improvements META
  3. MDL-21491

YouTube filter - "wmode" makes player inaccessible to keyboard users

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0.3
    • 1.9.6, 1.9.7, 2.0
    • Accessibility, Filters
    • None
    • Windows XP/Firefox 3.6; Windows/MSIE 7... (note, a wider, non-Moodle bug makes Flash inaccessible in Mac OS X/Firefox 3.6).
    • MOODLE_19_STABLE, MOODLE_20_STABLE
    • MOODLE_20_STABLE

      The parameter values "transparent" and "opaque" (that is, not the default "window") prevent keyboard users from using the TAB key to access and control embedded objects. Please see my blog post for details and related links, "Flash wmode considered harmful" (September 2009), http://freear.org.uk/node/22 - as I note there, most content creators/sites do not need "transparent" Flash objects (and the YouTube embed code does not contain it), so removing this parameter should not be an issue.

      I have found the related bugs/issues MDL-5938 "Transparent background for swf", and MDL-19231"Add filter to process YouTube..." (Moodle 1.9).

      The solution is to remove the following line in function "mediaplugin_filter_youtube_callback", in filter/mediaplugin/filter.php:

      <param name="wmode" value="transparent" />

      Patch to follow. Yours,

      Nick

            skodak Petr Skoda
            nfreear Nick Freear (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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