I updated the Embedded Media and Media: YouTube modules but I can't get YouTube embeds to work on the iPad.

Looks fine here: http://vintagefashiondirectory.com/shop/decades but not on the attached.

Any ideas?

CommentFileSizeAuthor
photo.PNG429.64 KBmariedeorio

Comments

Anonymous’s picture

I am seeing the same issue when attempting to view embedded videos on my iPad, except what I'm seeing is simply a message that says Flash needs to be installed in order to play the video. I checked the same videos in my PC web browser and they work fine.

ishmael-sanchez’s picture

You can handle this in the theming layer. First download http://www.longtailvideo.com/players and place in your theme folder or custom module folder. Then if you don't have template.php in your theme create one and add

function THEMENAME_preprocess_node(&$vars) {
  if ($vars['node']->field_EMFIELDNAME['0']['value'] != NULL) {
  // Load JS for seamless failover between the Flash and HTML5 players.
  drupal_add_js(drupal_get_path('THEME OR MODULE', 'NAME OF THEME OR MODULE') . '/mediaplayer/jwplayer.js');
  $vars['scripts'] = drupal_get_js();
  $you_tube_id = $variables['field_em_video']['0']['value'];
  // Call the player setup and video file
  $jw = 'jwplayer("container").setup({flashplayer: "/' .
	drupal_get_path('THEME OR MODULE', 'NAME OF THEME OR MODULE') . '/mediaplayer/player.swf",
	file: "http://www.youtube.com/watch?v=' . $you_tube_id . '",
	height: 320,
	width: 470
    });';
  drupal_add_js($jw, 'inline', 'footer');
}

Then create a content-field-field_EMFIELDNAME.tpl.php and add <div id="container">Loading the player ...</div>.

When the browser doesn't support flash it renders HTML5. You can read about it in the JW player embedding PDF file in the longtail video download.

aaron’s picture

Category: bug » feature
Status: Active » Fixed

as a note: you can specify that youtube videos go through longtail in the settings.

however, also note that in the latest dev version, i've added support for youtube's native html5 support, so this should no longer be an issue. just check the 'html5' box in the module settings, under player options.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Toongenius’s picture

#2 doesn't work for me- I just get a parse error.
#3 says it has been fixed in the latest release. It hasn't. See http://drupal.org/node/1222646
This issue is not fixed.