The embed script checks for the presence of html5 and Flash. If neither are present, the module should display a message, suggesting visitors should download Flash.

The module currently attempts to do this:

    // Put a prompt in the video wrappers to let users know they need flash
    if (!FlashDetect.installed && !html5){
      $('.media-vimeo-preview-wrapper').each(Drupal.media_vimeo.needFlash);
    }

However, the message is instantly replaced in the next part of the script:

    // Replace all object tags with iframes.
    if (Drupal.settings && Drupal.settings.media_vimeo) {
      for (video in Drupal.settings.media_vimeo) {
        Drupal.media_vimeo.insertEmbed(video);
      }
    }

Changing the "Replace all object tags with iframes" code, so it only runs if html5 or flash is present, will fix this issue.

Comments

manarth’s picture

Status: Active » Needs review
StatusFileSize
new467 bytes

Patch attached.

drewish’s picture

Status: Needs review » Closed (won't fix)

I want to deprecate that part of the code and just use the universal player in the iframe. Take a look at #1443092: Add more video display settings, switch to universal player..