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?
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/.
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?
Where is your video coming from? Do you want to upload or pull from an exisitng provider like youTube or vimeo?
S
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
Stephen Davidson , yes. from youtube or Vimeo
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
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?
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
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/.
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
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
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
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)?
Yes video is the alias of the doc type property. Not sure about UMP on MVC3, but I'm sure it will.
S
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
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
is working on a reply...