Has anyone else had youtube stop working with Embedded Media Field recently? Maybe they have changed something but it seems to have broken all videos using youtube on my site. Here is an example URL of what is happening
http://www.animationsa.org/community/videos/riaan/riaan-theron-reel-2008

It used to work fine but in checking over the last week it seems as if only youtube videos no longer embed properly. The vimeo ones still seem to work fine.

In the backend it shows that it has recognised the youtube ID fine and it is correctly fetching the thumbnail, just no video any more.

Has this happened to anyone else? Any fixes?

Thanks
Gregg

Comments

Glowingtree’s picture

same with a site I'm working on. i didn't do anything to my video content pages - when 2 days ago "whammo!"
the videos stopped showing up. One thing I'm noticing when using firebug, is that the div
for the embedded video content field is not even showing - not being rendered on the page -
thats when I knew things were fishy. So obviously not a browser display/compatibility issue.
The module isn't bringing the videos from Youtube properly.

I tried editing the page and changing the Youtube embed url, but still wouldn't work.
I don't have a Youtube API developer code, but that was fine before - videos
always played

Glowingtree’s picture

I just cut and pasted a embed code from Youtube into a blank page with a blank content
type (no filters) - works fine. For simple things I guess you don't need even the embedded video
field, just make a blank text field with no html filter on it, and call it "video"
http://www.baptistchurchscarborough.com/video-test

iaminawe’s picture

Thanks for the workaround idea Glowingtree...

I am using the Embedded Media Field for all members to be able to keep their own video portfolios up to date and members are using a range of services to host their videos including youtube so I cant really substitute it now for simpler option as there are already quite a few videos that have been added.

Does anyone have any ideas to fix this within Embedded Media Field? The other option is to remove the youtube service support but that would be a pity as a lot of our members already have stuff on youtube that they are sharing on our site.

iaminawe’s picture

Anyone else encountering this? It has killed my community video sections as a lot of my community are using youtube for their videos...

Any help would be greatly appreciated.

Thanks

Glowingtree’s picture

a word of caution with the work-around, if this is a field thats only accessible to trusted admins
posting content it should be fine. However if its available to basic or anonymous users to post video links,
theres a bit of a risk as there is no filtering of potentially damaging HTML (ie auto-loading virus
url) so maybe try "Full-html" filter for that field in a custom content type instead - I don't have time to test this, but its a suggestion - hopefully Youtube embed code will still work with Full-HTML filter

alex ua’s picture

Status: Active » Postponed (maintainer needs more info)

Youtube embeds work fine for me ( ex: http://zivtech.com/videos/interview-with-drupals-ghop-grand-prize-winner )

Are you running any other flash or javascript related modules?

iaminawe’s picture

Not really any other flash related modules. Here is a listing of the different module js that is being loaded

<script type="text/javascript" src="/misc/jquery.js"></script>
<script type="text/javascript" src="/misc/drupal.js"></script>
<script type="text/javascript" src="/sites/all/modules/jquery_update/compat-1.0.js"></script>
<script type="text/javascript" src="/sites/all/modules/jstools/jstools.js"></script>
<script type="text/javascript" src="/sites/all/modules/jstools/tabs/jquery.tabs.pack.js"></script>
<script type="text/javascript" src="/sites/all/modules/jstools/tabs/tabs.js"></script>
<script type="text/javascript" src="/sites/all/modules/nice_menus/nice_menus.js"></script>

<script type="text/javascript" src="/sites/all/modules/thickbox/thickbox.js"></script>
<script type="text/javascript" src="/sites/all/modules/panels/js/panels.js"></script>
<script type="text/javascript" src="/sites/all/scripts/jquery.curvycorners.packed.js"></script>
<script type="text/javascript" src="/sites/all/modules/swfobject_api/swfobject.js"></script>
<script type="text/javascript" src="/sites/all/modules/avatar_selection/js/avatar_selection.js"></script>
<script type="text/javascript" src="/sites/all/modules/fivestar/js/fivestar.js"></script>
<script type="text/javascript" src="/misc/textarea.js"></script>
<script type="text/javascript" src="/misc/collapse.js"></script>
<script type="text/javascript" src="/misc/autocomplete.js"></script>

<script type="text/javascript" src="/sites/all/modules/simplemenu/simplemenu.js"></script>
<script type="text/javascript" src="/sites/all/modules/jquery_update/collapse-fix.js"></script>

The embed code looks correct as far as I can see but there is just no display with only youtube videos
Here is what the embed code looks like in the source

<div class="field field-type-video-cck field-field-embedvideo"><div class="field-items"><div class="field-item odd"><div id="video-cck-youtube-flash-1" >Sorry, you need to install flash to see this content.</div>
<script type="text/javascript"><!-- 
 $(document).ready(function () {
  var flashvars = null;
  var params = { "width": "500", "height": "375", "no_flash": "Sorry, you need to install flash to see this content.", "version": "5", "type": "movie", "bg_color": "#FFFFFF", "express_redirect": "/sites/all/modules/swfobject_api/expressinstall.swf" };
  var attributes = null;
  swfobject.embedSWF('http://www.youtube.com/v/KDlPGuqG7MQ&amp;rel=1', 'video-cck-youtube-flash-1', '500', '375', '5', '/sites/all/modules/swfobject_api/expressinstall.swf', flashvars, params, attributes );
}); 
--></script>

The thing is only youtube embeds stopped working pretty randomly as well... I did not install any modules or update anything and it just stopped working....

Since then I have updated to the latest Drupal and Emfield but still no luck...

As mentioned previously, in the backend it looks like it is working fine and the youtube ID is being correctly recognised but somehow the swfobject embed is not loading the youtube videos

Any idea what could be causing this?
Here is a link to a sample video that is not being diplayed http://www.animationsa.org/community/videos/theanimationschool/welcome-a...

Thanks
Gregg

alex ua’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

You have a ton of javascript modules running, such as JSTools and SFWObject, any one of which could be causing the conflict. Turn off your other modules one by one and reopen this when you figure out which one is causing the problem (my money is on SWFObject and/or JQuery Update)

iaminawe’s picture

I removed swfobect and swfobject api modules and youtube videos were restored...

Thanks very much for suggestion
Gregg

Democron’s picture

Waiting for the fix.
In my case I can see the video on IE but can't view it on FireFox. Same thing happens with iaminawe's url, IE fine, FF can't see video.

srece’s picture

-enable PHP Filter in "Modules"
-create a new page, put your Youtube embed code in
-Select "Input Format" and select "PHP Code"

Well that worked for me and I have swftools running to.