This video plays in our current production site, which is running 7.x-1.0-beta

But it won't run in our UAT site which we've updated to 7.x-3.0

Code differences:
production:

<object width="560" height="340" alt="Youtube Video - //www.youtube.com/embed/-A7DU9ZCXT8?wmode=opaque">
      <param name="movie" value="//www.youtube.com/embed/-A7DU9ZCXT8?wmode=opaque"></param>
      <param name="allowFullScreen" value=""></param>
      <param name="wmode" value="" />
      <embed src="//www.youtube.com/embed/-A7DU9ZCXT8?wmode=opaque" type="application/x-shockwave-flash" width="560" height="340" allowfullscreen="" wmode="" alt="Youtube Video - //www.youtube.com/embed/-A7DU9ZCXT8?wmode=opaque"></embed>
    </object> 

UAT:

<object width="560" height="340" alt="Youtube Video - http://www.youtube.com/v/-A7DU9ZCXT8?version=3">
      <param name="movie" value="http://www.youtube.com/v/-A7DU9ZCXT8?version=3"></param>
      <param name="allowFullScreen" value="true"></param>
      <param name="wmode" value="transparent" />
      <embed src="http://www.youtube.com/v/-A7DU9ZCXT8?version=3" type="application/x-shockwave-flash" width="560" height="340" allowfullscreen="true" wmode="transparent" alt="Youtube Video - http://www.youtube.com/v/-A7DU9ZCXT8?version=3"></embed>
    </object> 

Comments

Pepper’s picture

Issue summary: View changes
Pepper’s picture

Title: Video won't load / play object versus iframe » Video won't load / play
Priority: Major » Normal
Issue summary: View changes
Pepper’s picture

Issue summary: View changes
Pepper’s picture

One seems to be properly converting to an iframe (in chrome's inspect element) the other does not.

Pepper’s picture

When testing the embed code in a straight html file, I had to convert /embed/ to /v/ in order for the video to load.

What needs to modified in the module to get it to print /v/?

Pepper’s picture

Okay, I found the place in the module where I could make a change and have my videos load. However, I don't think this is the best method for this. It's working atm to change the url_base from /embed/ to /v/.

//  $variables['url'] = url($protocol . '//www.' . $url_base . '/embed/' . $variables['video_id'], array('query' => $query, 'external' => TRUE));
$variables['url'] = url($protocol . '//www.' . $url_base . '/v/' . $variables['video_id'], array('query' => $query, 'external' => TRUE));
Pepper’s picture

Status: Active » Closed (cannot reproduce)