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 ?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | shadowbox-media_youtube_integration_problem-5753682-4.patch | 940 bytes | manfer |
| youtube.png | 105.79 KB | peem83 |
Comments
Comment #1
manfer commentedAny look to a page with the problem?
How are you adding the youtube video? Custom code or other way?
Comment #2
peem83 commentedThe 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
Comment #3
manfer commentedOk 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:
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.
Comment #4
manfer commentedComment #5
manfer commentedComment #6
peem83 commentedworks perfect now :)
Comment #7
manfer commentedFix pushed