Copied to clipboard

Flag this post as spam?

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


  • jlacis 19 posts 39 karma points
    Dec 17, 2012 @ 13:31
    jlacis
    0

    embeded video datatype

    hello. 

    I'm looking for embeded video datatype for Umbraco cms 4.11.

    is there any good tutorials how to create this datatype or plugins that will add 'embeded video' datatype?

  • Stephen Davidson 216 posts 392 karma points
    Dec 17, 2012 @ 13:33
    Stephen Davidson
    0

    Where is your video coming from? Do you want to upload or pull from an exisitng provider like youTube or vimeo?

    S

  • Stephen Davidson 216 posts 392 karma points
    Dec 17, 2012 @ 13:38
    Stephen Davidson
    0

    You might find this post of interest to you.

    http://our.umbraco.org/forum/using/ui-questions/31325-how-to-build-a-video-gallery?p=1

    and this package if you want to go down the hosted route..

    http://our.umbraco.org/projects/backoffice-extensions/universal-media-picker

    Regards,

    Stephen

  • jlacis 19 posts 39 karma points
    Dec 17, 2012 @ 13:53
    jlacis
    0

    Stephen Davidson , yes. from youtube or Vimeo

  • jlacis 19 posts 39 karma points
    Dec 17, 2012 @ 14:12
    jlacis
    0

    tried to unstall Universal media picker. 

    when install providers, got error '16 provider(s) failed to install ' looks like Universal media picker is not compatible with umbraco 4.11

  • Dan 1285 posts 3917 karma points c-trib
    Dec 17, 2012 @ 14:17
    Dan
    0

    Hi,

    Video embedding should be built into the WYSIWYG editor in Umbraco 4.11 (see Tim Geyssens' blog post about embedded media, the functionality from which has now been integrated into the core).  Would it be an option to use a WYSIWYG editor as your data type?

  • jlacis 19 posts 39 karma points
    Dec 17, 2012 @ 14:54
    jlacis
    0

    Dan it's a good idea. but the problem is that users will try to type text.

    but I need to allow users only to insert source url. and, maybe see preview of video

  • Dan 1285 posts 3917 karma points c-trib
    Dec 17, 2012 @ 15:11
    Dan
    0

    That's totally understandable.  In which case I'd usually either write my own very simple macro to parse YouTube/Vimeo link URLs from a basic 'textstring' input on the document type or try one of the oEmbed packages to see if they're compatible with 4.11.  @Stephen's post above links to the DAMP gallery plug-in which also looks like it handles YouTube/Vimeo embedding - there's a video demo and code download here too: http://24days.in/umbraco/2012/damp-gallery/.

  • Stephen Davidson 216 posts 392 karma points
    Dec 17, 2012 @ 15:40
    Stephen Davidson
    1

    Yeah the damp gallery is fantastic...but I have to say the Universal picker is very simple...and works beautifully with Vimeo. 

     

    I've just tested it with 4.11.1 and it works fine, are you remembering to install the provider also?

    Regards,

    Stephen

  • jlacis 19 posts 39 karma points
    Dec 17, 2012 @ 16:42
    jlacis
    0

    Stephen Davidson you are right. as I writed before, I had error durring installation of providers. I resolved it: just installed providers manualy.

    the next question is, how to view selected video on my template (view)? I use Vimeo provider

  • Stephen Davidson 216 posts 392 karma points
    Dec 17, 2012 @ 17:37
    Stephen Davidson
    0

    Really simple...If you have installed the provider there will be a Macro/XSLT available to you to insert into your template using the macro.

    <umbraco:Macro field="video" Alias="umpVimeoVideo" runat="server"></umbraco:Macro>

    This is how i used it in the following site.

    http://www.cowglensportsclub.com/video.aspx

    Hope this helps

    S

  • jlacis 19 posts 39 karma points
    Dec 18, 2012 @ 11:39
    jlacis
    0

    just one more question.

     field="video"

    'video' - it is alias name of my document type's property?  

     

    and, does Universal media picker support MVC3 (Razor)?

     

     

     

     

     

  • Stephen Davidson 216 posts 392 karma points
    Dec 18, 2012 @ 13:00
    Stephen Davidson
    0

    Yes video is the alias of the doc type property.  Not sure about UMP on MVC3, but I'm sure it will.

    S

  • jlacis 19 posts 39 karma points
    Dec 18, 2012 @ 17:04
    jlacis
    0

    hmmm.. strange...

    <umbraco:Macro field="video" Alias="umpVimeoVideo" runat="server"></umbraco:Macro>

    this works only, when I edit my MVC template and save it, using umbraco template editor. 

    but:

    1. I have to insert umbraco fpage field, using the editor. after that my code looks 

      @Umbraco.Field("myVimeoVideo")

         <umbraco:Macro field="myVimeoVideo" Alias="umpVimeoVideo" runat="server"></umbraco:Macro>

    2. when I save my template, it is being converted into .aspx page

     

    also tried to use @Umbraco.RenderMacro()

     @{

           var macro1= umbraco.macro.GetMacro("umpVimeoVideo");

           

          var dict=new Dictionary<string, object>();

          dict.Add("field", Model.Content.GetPropertyValue("myVimeoVideo"));

         }

        @Umbraco.RenderMacro("umpVimeoVideo",dict)  

        @Umbraco.RenderMacro("umpVimeoVideo", new { field = Model.Content.GetPropertyValue("myVimeoVideo") }) 

     but in all cases RenderMacro returns empty mvcString

      

  • Stephen Davidson 216 posts 392 karma points
    Dec 19, 2012 @ 17:01
    Stephen Davidson
    0

    Weird, does your Macro have parameters? Maybe it wont work in MVC...worth posting in the related forum?

    http://our.umbraco.org/projects/backoffice-extensions/universal-media-picker/bugs,-feedback-and-suggestions

    S

Please Sign in or register to post replies

Write your reply to:

Draft