Hi all -

I don't quite understand why I need all the various provider modules, e.g. Youtube and Vimeo, in addition to emfield:video module. Why? Does installing the submodules make available to you provider-specific options?

I'd like to embed a video from CNN.com. It has an embed link. Can I do this? If so, how?

Comments

cmejo’s picture

Title: Can I put any video that has an embed code in an emfield cck field? » Can I put any video that has any embed code in an emfield cck field?
Priority: Normal » Major

Sorry, the title should read "any embed code". In other words, I have an embed code that isn't supported by the module or any submodules, so does that mean an embed code from, e.g. bbc.co.uk will not work in an emfield?

ayesh’s picture

Version: 6.x-2.4 » 6.x-2.5
Priority: Major » Normal

I too need to see this happen!

clemens.tolboom’s picture

AFAIK this module provides integration with remote video providers by processing the embed/code to find out about title, duration, thumbnail etc of the embedded video. The thumbnail ie is usable through views.

That why we need a special module to process the particular info for each provider.

I would say won't ever fix as it is impossible to build.

If you still think this should be a new feature set the issue accordingly to 6.x-2.x and make it a feature request :-)

ayesh’s picture

Of course, when coupled with a proper input filter, we can use a text (area) field to do this so all embed codes are supported but we can never make sure that the video will work. That's why we use emfield of course.

However, in (very specific) occasions, we will have to allow users to enter any code for admin approval. If the embed code matches any regular expression, emfield can find out the video code and build the embed code itself.

We can never cover all video providers. But at least whitelist certain domains until we create a module for the provider.

Actually, I managed to create a provider.inc file that allow any input that has either <embed" , <iframe, or <object" in the text. (not allowing just-"http://" to force users to enter an embed code)
It can at least allow most providers that doesn't support in emfield atm.
Iframe, embed, and object tags has "width" and "height" params for width and height so we can replace them using refular expressions, with values set at field's settings.

gaëlg’s picture

Category: support » feature

Ayesh, could you share your code? This looks like a nice improvement. There are so many specific providers on the internet. Many providers such as municipalities or territorial entities don't want to host their videos on a commercial site but provide an embed code (and not the media url).

shaneonabike’s picture

Cool! Do you think you could provide a patch since this could be useful for a bunch of us?

jazznight17’s picture

+1

poli’s picture

+1

iantresman’s picture

I think this is what I need too. I am successfully using several emfield modules, but occasionally, I come across a media source for which there is no module.

Trying to create a new module is beyond my expertises, so I'd like the option to just paste the media website's embed code. I know this will give me no configurable options, but it would allow me to quickly mix media types for which I have a module, with those that I don't.

I understand that there are potential security implications which I think can be reduced by offering an "Embed code template" with a simple substitute of one or two parameters.

For example, the unsupported media site Reverbnation, has embed code of the format:

<iframe src='http://www.reverbnation.com/widget_code/html_widget/artist_2429179?widget_id=50&pwc[design]=default&pwc[background_color]=%23333333&pwc[included_songs]=0&pwc[song_ids]=12516455&pwc[photo]=1%2C0&pwc[size]=undefined' width='400' height='104' class='widget_iframe' frameborder='0' scrolling='no'></iframe>

The only bit that changes is "[song_ids]=12516455".

All I need is the ability to specify the starting/ending embed code, and the ability for the user to specify a string representing the [song_ids], in the case, the string "12516455".