I have enabled this module, and added this option under my input formats, but can't seem to make it work. Is there a step that I'm missing? Thanks.

Comments

kirkcaraway’s picture

I've upgraded to the newest release, and I'm still not able to get it to convert a youtube url to a player. Has anyone got this to work yet? Thanks.

Rtalian’s picture

Hi, in case you have not found the problem yet, I found that the individual providers have to be enabled on the Configure tab of the filter. Even though it says that they will all be supported if none are checked, it only worked for me once I checked them. Good luck! :)

kirkcaraway’s picture

Thanks! That fixed the problem. Another tip is to make sure all of your relevant filters are configured.

I wouldn't have guessed to look there. This module needs some documentation. I'm swamped right now, but in a few weeks I would be willing to help out if no one else can. Thanks.

kirkcaraway’s picture

Ran into a new, minor problem. I can't seem to change the size of the videos that are embedding inline. I've changed the size under the Filters settings, but nothing happens. Any clue as to what to do here? Thanks.

SeanBannister’s picture

Really having trouble getting this working, I've enabled all the providers and added the emfield to the content type and enabled the filter for the content type.

I also tried posting the plain URL and also tried [video:http://www.youtube.com/watch?v=LU8DDYz68kM]

aaron’s picture

Status: Active » Fixed

After enabling the module, you need to go to your Input Filters administration at /admin/settings/filters, configure the format you wish (such as Full HTML at /admin/settings/filters/2), check the box to allow Embedded Inline Media, and then configure the filter (such as at /admin/settings/filters/2/configure). In the filter's configuration, you'll then check the providers you wish to allow, and any other desired settings. Finally, when submitting a node, you'll need to ensure the proper filter is selected, and simply paste the URL (no brackets). Note that this will conflict with the URL filter if that is enabled, so you'll need to rearrange the filters to ensure the Embedded Inline Media filter is above that.

I just added this to the README to help folks in the future as well.

Status: Fixed » Closed (fixed)

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

HXn’s picture

Version: 6.x-1.x-dev » 6.x-1.17
Component: Documentation » Embedded Inline Media
HXn’s picture

Hi aaron,

I've done everything you described above, however, I'm still do not have a player displaying. The text of the link is now gone, but there is nothing in its place.

funana’s picture

Same here. The link doesnt show up anymore, neither the player. Tested it with a Youtube link.

Edit: Dohh! Used it with the Filtered HTML format and the <object> tags simply got filtered. Added object to the allowed HTML tags and it works now.

henrrrik’s picture

Status: Closed (fixed) » Active

How is this supposed to work? It only fires with hook_filter on the first node view, on subsequent views the JavaScript doesn't get included any more and the embed stops working.

aaron’s picture

Status: Active » Needs work

@henrrrik: good point; it doesn't work w/ js + swfobject. only works w/ straight object embeds. not sure if there's going to be a way to fix that.

vinoth.3v’s picture

you tube is working for me
but yahoo, flickr etc are not

please note INPUT FILTERS weight is important.
for example, if html filter has heavy weight than em inline weight, it will strip the embed/object tags if that filter does not allow these tags..

zoo33’s picture

WRT henrrrik's and aaron's comments above, I think it would be possible to solve the issue with a hook_nodeapi() implementation. Meta code:

eminline_nodeapi() {
  switch ($op) {
    case 'view':
      if (eminline_needs_swfobject($node->content)) {
        drupal_add_js('swfobject.js');
      }
      break;
  }
}

eminline_needs_swfobject() is a function that would have to be developed. Also, this only deals with nodes. A similar solution would have to be implemented for blocks/boxes I guess. Also, the field in question may be shown by Views without the node necessarily being viewed as a whole.

gdf’s picture

Found a quirk that causes the inline URL not to be converted to a video/preview/thumbnail: the URL cannot be enclosed "tightly" in a HTML tag. What I mean by that is, you cannot have <span>youtube-URL</span> or <div>youtube-URL</div>. You can, however, have <span> youtube-URL </span>; the difference in the last example is that there is whitespace between the tags and the URL.

I'm a newbie here so if this isn't the right place to report this, let me know what IS correct. And I'm dying to know about the possibility of other emfield types being inline-enabled, especially images.

shaundychko’s picture

I created a new issue for this here: http://drupal.org/node/817280

alex ua’s picture

Version: 6.x-1.17 » 6.x-2.x-dev
Status: Needs work » Closed (fixed)

Marking this one as fixed. Follow up on #817280: Embedded video field can't be put tightly between html tags if you're still having problems.

geerlingguy’s picture

camerongoble’s picture

I just encountered this issue and can confirm: adding

to the filtered HTML allowed tags made the video show up. Presumably this won't happen with the Full HTML filter.
geerlingguy’s picture

@camerongoble - please follow-up by testing the patch over at #811090: Embedded Inline Media filter regex out of date - URL can't be wrapped in HTML tags. Should fix the problem for you.