Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am interested in adding several new filters for different video sites, but I need some help getting started. I'm looking at both TED and Democracy Now to begin with.
Example TED
http://www.ted.com/talks/rory_stewart_time_to_end_the_war_in_afghanistan...
<object width="526" height="374">
<param name="movie" value="http://video.ted.com/assets/player/swf/EmbedPlayer.swf"></param>
<param name="allowFullScreen" value="true" />
<param name="allowScriptAccess" value="always"/>
<param name="wmode" value="transparent"></param>
<param name="bgColor" value="#ffffff"></param>
<param name="flashvars" value="vu=http://video.ted.com/talk/stream/2011G/Blank/RoryStewart_2011G-320k.mp4&su=http://images.ted.com/images/ted/tedindex/embed-posters/RoryStewart-2011G.embed_thumbnail.jpg&vw=512&vh=288&ap=0&ti=1196&lang=&introDuration=15330&adDuration=4000&postAdDuration=830&adKeys=talk=rory_stewart_time_to_end_the_war_in_afghanistan;year=2011;theme=a_taste_of_tedglobal_2011;theme=new_on_ted_com;theme=bold_predictions_stern_warnings;theme=war_and_peace;event=TEDGlobal+2011;tag=Foreign+Policy;tag=Global+Issues;tag=military;tag=peace;tag=politics;tag=war;&preAdTag=tconf.ted/embed;tile=1;sz=512x288;" />
<embed src="http://video.ted.com/assets/player/swf/EmbedPlayer.swf" pluginspace="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" bgColor="#ffffff" width="526" height="374" allowFullScreen="true" allowScriptAccess="always" flashvars="vu=http://video.ted.com/talk/stream/2011G/Blank/RoryStewart_2011G-320k.mp4&su=http://images.ted.com/images/ted/tedindex/embed-posters/RoryStewart-2011G.embed_thumbnail.jpg&vw=512&vh=288&ap=0&ti=1196&lang=&introDuration=15330&adDuration=4000&postAdDuration=830&adKeys=talk=rory_stewart_time_to_end_the_war_in_afghanistan;year=2011;theme=a_taste_of_tedglobal_2011;theme=new_on_ted_com;theme=bold_predictions_stern_warnings;theme=war_and_peace;event=TEDGlobal+2011;tag=Foreign+Policy;tag=Global+Issues;tag=military;tag=peace;tag=politics;tag=war;&preAdTag=tconf.ted/embed;tile=1;sz=512x288;"></embed>
</object>
Example Democracy Now
http://www.democracynow.org/2011/7/27/norwegian_shooting_suspects_views_...
<script type="text/javascript" src="http://www.democracynow.org/embed_show_v2/300/2011/7/27/story/norwegian_shooting_suspects_views_echo_xenophobia"></script>
If someone can help walk me through one of these I will be able to repeat this process for several other video sites. I will happily share my work back here for everyone to use and to possibly be committed to the module.
Comment | File | Size | Author |
---|---|---|---|
#9 | video-filter-Added_ted_support-1231748-8.patch | 1.04 KB | estoyausente |
#7 | video_filter-Added_support_for_ted-1231748.diff | 1.51 KB | estoyausente |
Comments
Comment #1
blackdog CreditAttribution: blackdog commentedThe problem with both those sites is that there is no ID in the URL that we can use to construct the codec. I don't really see how we can support these I'm afraid.
Comment #2
bryancasler CreditAttribution: bryancasler commentedThanks for the feedback blackdog. I only have a small group of users, with a separate role on the site, who would be going off the beaten path for these video sites, but I would like to support them. What do you think my best option is then?
Comment #3
blackdog CreditAttribution: blackdog commentedTry to find what really needs to be used for the embed codes, and try to create an URL pattern that your users can craft by hand, using information found on site. See the Slideshare codec for example.
Comment #4
AntiNSA CreditAttribution: AntiNSA commentedI really would like those two supported too. In addition MIT World..... IF you find out let me know. THanks!
Comment #5
estoyausenteI think I can do it (I need now), but I don't know why the module don't catch my codec.
It this:
Drupal return me the next:
<!-- VIDEO FILTER - INVALID CODEC IN: [video:http://www.ted.com/talks/lang/es/tim_berners_lee_on_the_next_web.html width:300 height:300] -->
Comment #6
estoyausenteNow it's run perfectly:
I'm going to create a new patch for the module for this new provider. :) Only need time.
Comment #7
estoyausenteI added support for TED. Test it please.
Comment #8
estoyausenteI change the issue type because now have a code solution directly.
Comment #9
estoyausenteTED have changed his url (now it hasn't .html at the end of it). I change the code and I made a patch.
Comment #10
estoyausenteComment #11
markconroy CreditAttribution: markconroy at Annertech commentedHi folks,
I've created two modules which allow you to embed videos from these two providers with video_filter module:
https://www.drupal.org/project/video_filter_democracynow
https://www.drupal.org/project/video_filter_ted
Hope that helps someone.
Comment #12
bryancasler CreditAttribution: bryancasler commentedThank you Mark!
Comment #13
estoyausenteOk, But I think that is better create an integration with it :(
Comment #14
markconroy CreditAttribution: markconroy at Annertech commentedHi estoyausente,
If the module maintainer(s) wish to integrate these with the parent module, they are welcome to. Seems to take a long time for this to happen, so in the meantime, my modules are useful/usable (and they solve the two issues posted as part of this issue, rather than just the TED issue).
One of the reasons that I didn't add them as patches was that I was using them as part of my project application review for getting full project creation rights.
Comment #15
estoyausenteYes, @markconroy my comment isn't for your work (ty for do it). But it's a little bit sad that we have to create a new module for this "stupid" thing.
Regards!
Comment #16
markconroy CreditAttribution: markconroy at Annertech commentedWell like I say, the code is there now, and I have no problem with video_filter maintainers adding it to video_filter. Just means if they don't have time to do it, it's still usuable in the short term.
Thanks.
Comment #17
minnur CreditAttribution: minnur at Chapter Three commentedThis has been added to D8 version of the module.
Comment #19
DamienMcKennaCommitted, after tidying up the code a little.
Comment #20
DamienMcKennaComment #21
markconroy CreditAttribution: markconroy at Annertech commentedHi Damien,
Any chance of adding in my codec for Democracy Now (referenced in the original issue by the OP here)? The code can be found here:
https://www.drupal.org/project/video_filter_democracynow
Thanks.
Comment #22
DamienMcKennaI've moved the DemocracyNow codec into a new issue: #2682069: Add DemocracyNow support
Comment #23
markconroy CreditAttribution: markconroy at Annertech commentedThanks Damien.
Comment #24
minnur CreditAttribution: minnur at Chapter Three commented