Active
Project:
Embedded Media Field
Version:
6.x-2.5
Component:
Embedded Video Field
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Dec 2010 at 06:02 UTC
Updated:
14 Jun 2012 at 23:32 UTC
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
Comment #1
cmejo commentedSorry, 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?
Comment #2
ayesh commentedI too need to see this happen!
Comment #3
clemens.tolboomAFAIK 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 :-)
Comment #4
ayesh commentedOf 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.
Comment #5
gaëlgAyesh, 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).
Comment #6
shaneonabike commentedCool! Do you think you could provide a patch since this could be useful for a bunch of us?
Comment #7
jazznight17 commented+1
Comment #8
poli commented+1
Comment #9
iantresman commentedI 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".