Hi, I'm trying to play YouToube movie in shadowbox but when the shadowbox is loaded I get only YouTube palyer with message 'An error occurred. Please try again later' . Vimeo works perfect. I reinstalled my Flash Player to be sure that's not the issue. Any clue what can be wrong ?

Comments

manfer’s picture

Any look to a page with the problem?

How are you adding the youtube video? Custom code or other way?

peem83’s picture

The page is not live yet. I just paste the link to the video (Embedded media field for filefield). Afrer small debuging I figured out that the problem is with url to the video - example bellow:

this is the link to the video image generated by shadowbox code (it's also broken - I don't see video image)
http://img.youtube.com/vi/ATB - New Best Trance 2011 Mixed by DJ Balouli (Album Distant Earth)/0.jpg

and generated link to the video itself:
http://www.youtube.com/embed/ATB - New Best Trance 2011 Mixed by DJ Balouli (Album Distant Earth)?autoplay=1

the movie url on youtube is: http://www.youtube.com/watch?v=ugbm8SZBaCU or http://youtu.be/ugbm8SZBaCU - I tried both and it's not working

if I replace video title in url generated by shadowbox module in this case 'ATB - New Best Trance 2011 Mixed by DJ Balouli (Album Distant Earth)' to ugbm8SZBaCU from YT url it works perfect

manfer’s picture

Ok it seems maintainters of youtube media module has decided to change the data stored for a youtube file. Now the stored data of the file looks like the following:

array (
  'fid' => '28',
  'display' => '1',
  'description' => NULL,
  'uid' => '1',
  'filename' => 'ATB - New Best Trance 2011 Mixed by DJ Balouli (Album Distant Earth)',
  'uri' => 'youtube://v/ugbm8SZBaCU',
  'filemime' => 'video/youtube',
  'filesize' => '0',
  'status' => '1',
  'timestamp' => '1332210413',
  'type' => 'video',
  'rdf_mapping' => 
  array (
  ),
)

So now the filename property stores the title of the video instead of the ID of the video as in previous versions. I need to change shadowbox module to get the ID from the uri property. Tomorrow would try to look into it.

manfer’s picture

manfer’s picture

Status: Active » Needs review
peem83’s picture

Status: Needs review » Closed (fixed)

works perfect now :)

manfer’s picture

Status: Closed (fixed) » Fixed

Fix pushed

Status: Fixed » Closed (fixed)

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