Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bjørn Fridal 274 posts 784 karma points
    Apr 11, 2010 @ 22:00
    Bjørn Fridal
    0

    The difference?

    Hi,

    This looks like a great package, but might I ask where it differs from the oEmbed macro http://our.umbraco.org/projects/oembed-macro---easy-embed-youtube,-flickr,-vimeo-etc

     

  • Lee 1130 posts 3088 karma points
    Apr 12, 2010 @ 07:20
    Lee
    0

    Thats what I was thinking too :S... From first look its exactly the same?

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Apr 12, 2010 @ 10:36
    Lee Kelleher
    0

    @Anders, you didn't add the "Tea.OEmbed.dll" to your package, so it currently doesn't work!

    I agree, this seems exactly like oEmbed macro.  I'm all for a little competition, but does it offer anything different?

    Cheers, Lee.

  • Anders Burla 2560 posts 8256 karma points
    Apr 12, 2010 @ 14:01
    Anders Burla
    1

    @Lee Thanks for seeing that the dll was missing. I have uploaded a new zip file.

    At the moment it looks as almost the same as your package i see. I made a tweet about the project and poul asked me to submit it, so i submitted.

    In near future i will make some improvements for the package and try to extend to more providers. Maybe we should put our heads together and migrate our knowledge?

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Apr 12, 2010 @ 15:44
    Lee Kelleher
    0

    Hi Anders, I'm glad that you have submitted it here! The more the merrier! But if the projects are identical, then maybe some collaboration is needed?

    The oEmbed macro project isn't mine, Christian Palm is the developer of that - if you want to get in touch with him, then via his twitter or website is best.

    Cheers, Lee.

  • Bill 6 posts 26 karma points
    Apr 19, 2010 @ 03:25
    Bill
    0

    Thanks to oohembed, it now supports captioned video through dotSub (probably english only, since the language has to be in the embed link.

  • Bill 6 posts 26 karma points
    Apr 19, 2010 @ 03:33
    Bill
    0

    btw, one difference for me, is that the other cpalm insert, doesn't (at this point) work with the oohembed dotSUB.

     

    http://captionwire.com/samples/dotsub/dotsub-with-insertvideo-plugin.aspx

  • Anders Burla 2560 posts 8256 karma points
    Apr 19, 2010 @ 09:25
    Anders Burla
    0

    Hi Bill,

     

    Sounds great with the support for dotSUB in oohEmbed!! I clicked your link but no video is shown at the moment. Is than an error in my code or is the link to dotSub wrong and thats because no video is displayed?

  • Christian Palm 278 posts 273 karma points
    Apr 19, 2010 @ 11:21
    Christian Palm
    0

    Hi All

    After looking at the code (via Reflector) I can see no difference in the two packages. Mine also works with dotSub.

    The are both lacking the caching of the response from oohEmbed :-) who will get the caching implemented first (cache key = oohEmbed and duration 10 minutes)

    /CPalm

  • Anders Burla 2560 posts 8256 karma points
    Apr 19, 2010 @ 12:43
    Anders Burla
    0

    Hi CPalm,

    Yes caching is missing :) Would you cache the complete resource or just the result from oohEmbed? ( The image url/flash embed code )

  • Christian Palm 278 posts 273 karma points
    Apr 19, 2010 @ 15:43
    Christian Palm
    0

    Looking into your code I would

    if (!base.IsPostBack && !string.IsNullOrEmpty(this.SourceUrl))
    {
    // Some concating of the url
    // ...
    string cacheKey = "OEmbedControl::" + oohEmbedUrl.ToString();
    if (HttpContext.Current.Cache[key] != null)
    {
    this.LitContent.Text = HttpContext.Current.Cache[key];
    return; // Cache used...
    }

    // Do the oohembed calls
    // ...

    string html = jSerialize.Deserialize<OEmbedResponse>(jsonResponse).GetHtml();
    HttpContext.Current.Cache.Insert(cacheKey, html, null, DateTime.Now.AddMinutes(10), Cache.NoSlidingExpiration);

    this.LitContent.Text = html;
    }

  • Anders Burla 2560 posts 8256 karma points
    Apr 19, 2010 @ 15:59
    Anders Burla
    0

    Looks like what i had thought out in my head :)

    What is the best convention for key naming in Cache? Have your namespace or project name in the key or?

  • Anders Burla 2560 posts 8256 karma points
    Apr 19, 2010 @ 19:21
    Anders Burla
    0

    Updated my code to use caching. But how do i upload the new project file without resetting the download counter?

  • Bill 6 posts 26 karma points
    Apr 20, 2010 @ 02:16
    Bill
    0

    I think I just jumped the gun on saying it was working. I'll have to compare the embed codes. But dotSUB told me they are working on doing their own oembed and should have it this week. Don't know how that effects detection/development.

    I kind of agree with the oohembed guy, that it's nice to have just one source...

     

  • Bill 6 posts 26 karma points
    Apr 20, 2010 @ 13:01
    Bill
    0

    dotSUB now has official oembed support - http://solutions.dotsub.com/oEmbed

Please Sign in or register to post replies

Write your reply to:

Draft