If anyone can help me with this I would REALLY appreciate it. After a whole day of fiddling with this and reading over forums I cannot get it to work.

This is what I did:
1) installed and enabled ckk, embedded media field, and embedded video field.
2) changed the embedded media field settings to allow youtube
3) created new content type (video), added new field (Embedded Media,widget = 3rd patry video)
4) submitted a new node of that content type with a YouTube URL (also tried the embed code)

My problem:
The video does not show up at all!?! There is no box at all, nothing, just the title and body text.

Other info:
- I do not have it set to use swfobject.js or the swfobject API. I tried using each of those without any luck However, at least when I was using swfobject.js I would get this text where the video should be "Sorry, you need to install flash to see this content."
- Tried changing the theme without luck
- I'm using the latest Drupal & modules releases
- If I set the display field setting to thumbnail image then the image will show up but no video will play when it is clicked

Here is the code that gets inserted:

<div class="content"><div class="field field-type-emvideo
field-field-youtube-link">
   <div class="field-items">
           <div class="field-item odd">
                           <div
id="video-cck-youtube-flash-wrapper-1"><object
type="application/x-shockwave-flash" height="350" width="425"
data="http://www.youtube.com/v/Nc8ZnfDgLI0&amp;rel=0&enablejsapi=1&playerapiid=ytplayer"
id="video-cck-youtube-flash-1" allowFullScreen="false">
         <param name="movie"
value="http://www.youtube.com/v/Nc8ZnfDgLI0&amp;rel=0&enablejsapi=1&playerapiid=ytplayer"
/>

         <param name="allowScriptAcess" value="sameDomain"/>
         <param name="quality" value="best"/>
         <param name="allowFullScreen" value="false"/>
         <param name="bgcolor" value="#FFFFFF"/>
         <param name="scale" value="noScale"/>
         <param name="salign" value="TL"/>
         <param name="FlashVars" value="playerMode=embedded" />
         <param name="wmode" value="transparent" />
       </object></div>        </div>

       </div>
</div>

And here are the scripts loaded on the page:

<script type="text/javascript" src="/adrupal/misc/jquery.js?m"></script>
<script type="text/javascript" src="/adrupal/misc/drupal.js?m"></script>
<script type="text/javascript" defer="defer" src="/adrupal/sites/all/modules/admin_menu/admin_menu.js?m"></script>
<script type="text/javascript" src="/adrupal/sites/all/modules/filefield/filefield.js?m"></script>
<script type="text/javascript" src="/adrupal/sites/all/themes/litejazz/js/jquery.pngFix.js?m"></script>

<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, { "basePath": "/adrupal/", "admin_menu": { "margin_top": 1 } });
//--><!]]>
</script>
<script type="text/javascript"> </script>

Thanks!

Files: 
CommentFileSizeAuthor
#29 video_filter-adblock.patch616 bytesarcovia

Comments

VM’s picture

I'm using this module without issue pulling youtube vids as well as others.

The url you are using to access youtube seems wrong to me. more like you are trying to use the FULLSCREEN url rather than the direct url. while your fashvars have full screen set to FALSE.

ie: The url should be something more like http://youtube.com/watch?v=9iOmErru0XA

compare the above to what you are using

Therefore your address should be : http://youtube.com/watch?v=Nc8ZnfDgLI0

Alex UA’s picture

Version:6.x-1.0-beta1» 6.x-1.x-dev

The following indicates that are not using the correct version of the youtube.inc file:

<div
id="video-cck-youtube-flash-wrapper-1">

Where is the "video-cck" coming from?

Please completely remove the emfield module folder from your server, replace it with the latest development version, run update.php, visit the admin/build/module page, test again and let us know if you're still having an issue.

tenek’s picture

Thanks for the responses.

Re: updating to the latest development release.

I have updated to the latest dev release, applied the patch to solve the brightcove.inc error message, and I am still having the same problem. The steps I took were: 1) deleted the old module from the modules directory (I did not run an uninstall), deleted the video content types, and deleted the video content 2) copied and enabled the latest development version, 3) created the video content type and added video content. The issue is the same - no video appears.

This is the relevant code of the page after the changes:

  <div class="content">Test link or embed video<div class="field field-type-emvideo field-field-embed-video">
      <div class="field-label">Link or embed video:&nbsp;</div>
    <div class="field-items">
            <div class="field-item odd">

                            <div id="emvideo-youtube-flash-wrapper-1"><object type="application/x-shockwave-flash" height="350" width="425" data="http://www.youtube.com/v/G9mviThmMaY&amp;rel=0" id="emvideo-youtube-flash-1" allowFullScreen="false">
          <param name="movie" value="http://www.youtube.com/v/G9mviThmMaY&amp;rel=0" />
          <param name="allowScriptAcess" value="sameDomain"/>
          <param name="quality" value="best"/>
          <param name="allowFullScreen" value="false"/>
          <param name="bgcolor" value="#FFFFFF"/>
          <param name="scale" value="noScale"/>
          <param name="salign" value="TL"/>
          <param name="FlashVars" value="playerMode=embedded" />

          <param name="wmode" value="transparent" />
        </object></div>        </div>
        </div>
</div>
</div>

And here are the scripts that are loading:

<script type="text/javascript" src="/adrupal/misc/jquery.js?6"></script>
<script type="text/javascript" src="/adrupal/misc/drupal.js?6"></script>
<script type="text/javascript" defer="defer" src="/adrupal/sites/all/modules/admin_menu/admin_menu.js?6"></script>
<script type="text/javascript" src="/adrupal/sites/all/modules/filefield/filefield.js?6"></script>
<script type="text/javascript" src="/adrupal/sites/all/themes/litejazz/js/jquery.pngFix.js?6"></script>

<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, { "basePath": "/adrupal/", "admin_menu": { "margin_top": 1 } });
//--><!]]>
</script>

I don't think it is an external issue (e.g. browser) because I can copy and paste the embed code from the YouTube page directly into the body (with full html filter) of a node and have the video correctly appear.

Re: the fullscreen response, I've tried it with a different URL and I am having the same issue.

Thanks again for the responses. Any other ideas?

tenek’s picture

Title:Embedded Video Does Not Display (YouTube)» Embedded Video Does Not Display (YouTube & Google)

Some further information:

I have been trying to isolate the problem so I set up and tried to embed a google video. In IE I get the same problem (no video) but firefox says "Your browser is not able to display this multimedia content." Also, after updating the node I get a log entry saying "Could not connect to google, HTTP error 400." I only care about getting YouTube to work but perhaps this is useful information.

It would be great if anyone has something else for me to try because I can't think of what else to do.

Thanks!

dm2243’s picture

I'm getting the same problem. I wonder if there's a conflict with 6.9?

VM’s picture

I don't know if it is related to Drupal 6.9. I'm using 6.9 and emfield without seeing this issue.

tenek’s picture

VeryMisunderstood: Does anything look wrong with the code I pasted above?

Could it have something to do with the fact that I am working with a local (XAMPP) installation?

I was able to get the YouTube video upload module working (http://drupal.org/project/video_upload) but that does not really fill the same function.

danzsmith’s picture

I am having the same issue - 6.9 with latest dev module and it is not isoltaed to YouTube videos - I can't get any videos to display at all (Blip TV, etc). Help!

VM’s picture

the code you pasted above shows the original problem where you were using an outdated version. That said. if you updated the module, the code may look different and if it isn't you may have to completely remove the module and it's table and start over.

The module works perfectly well for me.

tenek’s picture

Title:Embedded Video Does Not Display (YouTube & Google)» Embedded Video Does Not Display (YouTube, Google, etc.)

VeryMisunderstood: Sorry, I should have been more clear. I updated the module and then reposted the code in a subsequent reply. Please see posting #3 for the current source code from my test page. The line indicating that I was using the wrong version ("video-cck-youtube-flash-wrapper-1") is now gone. Anything else look suspicious in the code? Any other tests I could run to narrow down the problem?

danzsmith and dm2243: Do you both have xampp local installations?

Thanks!

danzsmith’s picture

To be honest I am not sure what that actually means (xampp local installations). My site is hosted on LunarPages which gives me localhost access to MySQL, etc...

danzsmith’s picture

If it helps here is the source form my test page (at least the part of the source I thought might be relevant):

  <div class="content">

    <!-- google_ad_section_start --><div class="field field-type-emvideo field-field-video">
      <div class="field-label">video:&nbsp;</div>
    <div class="field-items">
            <div class="field-item odd">
                            <div id="video-cck-youtube-flash-wrapper-1"><object type="application/x-shockwave-flash" height="350" width="425" data="http://www.youtube.com/v/UMMsqRswbvw&amp;rel=0&enablejsapi=1&playerapiid=ytplayer&amp;fs=1" id="video-cck-youtube-flash-1" allowFullScreen="true">
          <param name="movie" value="http://www.youtube.com/v/UMMsqRswbvw&amp;rel=0&enablejsapi=1&playerapiid=ytplayer&amp;fs=1" />
          <param name="allowScriptAcess" value="sameDomain"/>
          <param name="quality" value="best"/>

          <param name="allowFullScreen" value="true"/>
          <param name="bgcolor" value="#FFFFFF"/>
          <param name="scale" value="noScale"/>
          <param name="salign" value="TL"/>
          <param name="FlashVars" value="playerMode=embedded" />
          <param name="wmode" value="transparent" />
        </object></div>        </div>
        </div>

</div>
<!-- google_ad_section_end -->  </div>

VM’s picture

looking at that code are you sure you are using 6.x version of the emfield.module?

or are you using 5.x with http://drupal.org/project/video_cck

danzsmith’s picture

That file I downloaded and extracted was emfield-6.x-1.x-dev.tar.gz ...also as an FYI I don't think it is anything external as I can take embed code and put it in the body of a Story node and it works fine...

I completely uninstalled and re-installed the dev module just to make sure. I have the same issue - here is the code snippet:

<div class="content">

    <!-- google_ad_section_start --><div class="field field-type-emvideo field-field-video">
      <div class="field-label">video:&nbsp;</div>
    <div class="field-items">
            <div class="field-item odd">
                            <div id="emvideo-youtube-flash-wrapper-1"><object type="application/x-shockwave-flash" height="350" width="425" data="http://www.youtube.com/v/_akTObWdsl4&amp;rel=0&amp;fs=1" id="emvideo-youtube-flash-1" allowFullScreen="true">
          <param name="movie" value="http://www.youtube.com/v/_akTObWdsl4&amp;rel=0&amp;fs=1" />
          <param name="allowScriptAcess" value="sameDomain"/>
          <param name="quality" value="best"/>

          <param name="allowFullScreen" value="true"/>
          <param name="bgcolor" value="#FFFFFF"/>
          <param name="scale" value="noScale"/>
          <param name="salign" value="TL"/>
          <param name="FlashVars" value="playerMode=embedded" />
          <param name="wmode" value="transparent" />
        </object></div>        </div>
        </div>

</div>

Thanks for any help...

VM’s picture

oddly enough if you look at the code now it is different. the div id is where the difference lies.

Not at all sure what else to tell you here. I use the latest -dev and it works perfectly in a CCK content type with ONLY the a youtube field. I can produce a link if you want it to see it working and compare.

The only thing that strikes me is http://www.youtube.com/v/_akTObWdsl4
youtube links I use don't include the /v/

danzsmith’s picture

Ok I did some more checking and it seems the issue may be two-fold.

1) after I completely uninstalled the LIghtbox2 module (it was not enabled) and changed my display setting to Thumbnail -> Preview Size Video inline Replacement I at least started seeing an image and am able to play the video

2) However, I only seem to be able to do so in IE - I was using FireFox 3 this whole time and getting the white screen started trying IE and can see the video. However, still see nothing when using FireFox 3.

I assume there is some other different thread possibly describing issues with FireFox 3 and emfield?

Thanks!

VM’s picture

don't know. it works in all browsers for me. I'd create a test site with ONLY cck and emfield do testing there and if you can recreate the problem it may help narrow down where the problem may lie.

danzsmith’s picture

DOH! After playing around with this I have figured it out - it was the AdBlock add-on in FireFox that was simply just blocking the video from playing at all by just displaying the white screen. Some kind of message would have been nice but I guess that is too much to ask.

Once I disabled AdBlock all my videos started playing - so my issue is solved.

Thanks top everyone for their help - it is appreciated!

VM’s picture

Status:Active» Closed (fixed)
tenek’s picture

Title:Embedded Video Does Not Display (YouTube, Google, etc.)» Embedded Video Does Not Display (YouTube, Google, etc.) With AdBlock Turned On
Status:Closed (fixed)» Active

AdBlock was my problem too. Thanks!

But...

Now there is the problem that anyone using AdBlock will not be able to see these videos. Anyone have any idea how to solve this?

Just in case someone else runs into the same problem, I found that simply turning AdBlock off via its internal menu was not enough. I actually had to disable it from the add-ons menu.

VM’s picture

can youtube or any other video site be used with adblock on?

tenek’s picture

I have tried with YouTube and BlipTV. AdBlock only seems to cause problems with the YouTube video. The BlipTV video appears to work fine. So I guess the problem is related to YouTube specifically.

Does anyone have an online sample of a YouTube video embedded with cck that I could test with my browser?

I've checked the AdBlock page for what to do if there are false-positives (http://adblockplus.org/en/getting_started#false-positives). Unfortunately those instructions don't help because when I go to the list of blockable items nothing appears in red (i.e. AdBlock does not think anything is being blocked). Seems like a deeper problem than an incorrectly configured AdBlock filter.

(As an aside, the BlipTV video only worked if I inputted the URL as opposed to the embed code - however, that is fine with me because I only want to use YouTube)

Alex UA’s picture

Status:Active» Postponed (maintainer needs more info)

This is quite obviously an AdBlock issue, so until we have more info I'm marking this as postponed.

tenek’s picture

That makes sense to me. I've posted a question on the AdBlock forum (http://adblockplus.org/forum/viewtopic.php?p=24908#24908) if anybody is having the same problem and wants to follow.

In the meantime it would still be great if some people could post links to examples of YouTube videos embedded with this module for testing purposes. It would be particularly useful if someone who is not using SWFobject could post a link because I note that I can see the videos on the demonstration site (http://drupalhub.org/videos) even with AdBlock on. I don't think it is a problem with my specific drupal installation because I did a fresh install to the latest version with only the cck and embedded video field modules enabled and the problem remains.

tenek’s picture

Ok, so the problem was that I was using AdBlock instead of AdBlock Plus.

That is fine except that I'm sure other people (i.e. users) will make the same mistake. A google search comes up with AdBlock as the first hit instead of AdBlock Plus (see http://www.google.ca/search?hl=en&q=firefox%20block%20ads&meta=). Also, the page shows 26,000 weekly downloads and many recent comments (https://addons.mozilla.org/en-US/firefox/addon/10).

I doubt anything can be done about this except to document the problem.

tenek’s picture

Final update: I messaged the maintainer of the old AdBlock and it has now been unlisted.

tenek’s picture

Status:Postponed (maintainer needs more info)» Fixed

Status:Fixed» Closed (fixed)

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

arcovia’s picture

Status:Closed (fixed)» Active
StatusFileSize
new616 bytes

Hi,

There is still many firefox users with AdBlock installed, since this extension seems to be maintained by authors, so such users won't upgrade to AdBlock plus.

Attached is a small patch for 2.6 version that solves the issue by inserting "embed" tag inside the object one. I didn't try it with all sources, but it works for YouTube and Dailymotion.