Posted by bengtan on September 8, 2008 at 3:40am
13 followers
Jump to:
| Project: | Media: YouTube |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Hi,
Not sure where to file this, so please repost to the appropriate spot. And it's not necessarily a bug either, but it should be noted somewhere.
It seems that the Youtube provider uses swfobject 1.5. Please mention somewhere (maybe in the emfield configuration?) that it has to be version 1.5. I only found out after trying swfobject 2.x and debugging javascript error messages.
Is Youtube the only provider that uses swfobject? It so, perhaps it's possible to upgrade the youtube provider to use swfobject 2.x?
This issue may affect 5.x versions of emfield/youtube as well.
Anyway, I'll leave you guys to decide how to address this. Thank you.
Comments
#1
Okay, thank you for this. This explains the issue I was having with embedding Youtube and getting the message that flash wasn't installed. I just tried blip.tv and it worked just fine. Hmmm, I'm not sure how to resolve this issue, but if I get chance, I'll poke around in the code for a fix.
In the meantime, does anybody know where I can get v 1.5?
#2
Hi all
I've the same problem, but I've find the v 1.5 here http://blog.deconcept.com/2007/02/28/swfobject-1-5-released/
I hope to resolved the problem...
Here my problem
http://www.walterfantauzzi.com/node/60
#3
I tried the swfobject 1.5 release along with swfobject_api and set the "Use SWFObject" option on in emfield media settings.
Same result.
arvhive.org works fine
if I turn off the "use swfobject" option then youtube video shows up fine as well.
As soon as I turn on "use swfobject" option then just the youtube video fails with "Sorry, you need to install flash to see this content."
Tried debugging in firebug. Line 11 from swfobject_api.js reported "ReferenceError: swfobject is not defined"
1
2// $Id$
3
4/**
5 * This function looks for swfobject class items and loads them
6 * as swfobjects.
7 */
8Drupal.behaviors.swfobjectInit = function (context) {
9 $('.swfobject:not(.swfobjectInit-processed)', context).addClass('swfobjectInit-processed').each(function () {
10 var config = Drupal.settings.swfobject_api['files'][$(this).attr('id')];
11 swfobject.embedSWF(config.url, $(this).attr('id'), config.width, config.height, config.version, config.express_redirect, config.flashVars, config.params, config.attributes);
12 });
13};
#4
Using the March 13, 2009 release of Emfield 6.x-dev I've got the opposite behavior.
With swfobject v1.5 enabled, I get the "Sorry, you need to install flash to see this content." message, but all is well with swfobject v2.1.
***Update***
Above comments refer to the video embedded in the page. When thickbox is activated I'm getting the "Sorry, you need to install flash to see this content." in the modal window for both versions of swfobject.js.
#5
I don't see this with SWFobject 2.1 either. Thickbox is a different issue altogether and I don't use it to be able to check but problems with thickbox should go into the thickbox issue queue.
#6
Automatically closed -- issue fixed for 2 weeks with no activity.
#7
Reopening.
This is still an issue in the 5.x-1.x-dev version of the module.
swfobject 1.5 works
swfobject 2.1 does not
#8
Hello,
I'm using emfield 6x-1.18, and I can't get any youtube video to work with swfobject.
I've tried:
- using swfobject.js 1.5, 2.1 and 2.2 directly with emfield
- using swfobject api instead
- loading swf objects directly with theme('emfield_swfobject', $url)
- videos from Youtube, Vimeo, Blip and Dailymotion
- NOTE: Vimeo Blip and Dailymotion work when loaded directly (not using theme('emfield_swfobject'...)).
Everytime I get a "Sorry, you need to install flash to see this content.".
The only once I could load the Youtube video is with swfobject disabled.
Any idea?
#9
+1
#10
I think this is relevant to this issue. I to am having issues with swfobject and youtube video's. When i check to use swfobject it tells me to use no trailing slash. But then firebug shows me the following error:
I think this has to do with 1)we do need trainling slash or 2)the config.url is not passed correctly to swfobject_api.js
#11
I don't know if this is still an issue, but if it is, it should be handled in Media: YouTube.
#12
+1
I'm not able to use youtube videos when swfobject enabled.
#13
marked #996656: swfobject.js not being included for Thickbox thumbnails as a duplicate of this issue.