Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Im trying to do a very simple thing: To let users upload a video file to the media section, pick it with a content picker and show it on a page.
I have a macro that just needs an url to the video:
<umbraco:Macro htmlID="" css="" posterImageUrl="" sourceMP4="" sourceWebM="" sourceOgg="" videoWidth="" videoHeight="" videoPreload="0" videoAutoplay="0" videoControls="0" downloadLinks="0" Alias="HTML5Video.Video" runat="server"></umbraco:Macro>
I can get the URL through a Razor Macro, but how do I pass it to the macro above as the sourceMP4 parameter?
Alternatively - how do I get the URL of the umbracofile and insert it using other methods. Is the answer maybe to be found here:
http://our.umbraco.org/wiki/reference/templates/umbracomacro-element/macro-parameters/advanced-macro-parameter-syntax
Umb version 4.7.1
To get the URL of the umbracofile, use the getmedia method in the xslt, eg
umbraco.library:GetMedia($foo, true)/umbracoFile
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How do I set a parameter on a macro to the URL of a media file or to a Razor variable?
Im trying to do a very simple thing: To let users upload a video file to the media section, pick it with a content picker and show it on a page.
I have a macro that just needs an url to the video:
<umbraco:Macro htmlID="" css="" posterImageUrl="" sourceMP4="" sourceWebM="" sourceOgg="" videoWidth="" videoHeight="" videoPreload="0" videoAutoplay="0" videoControls="0" downloadLinks="0" Alias="HTML5Video.Video" runat="server"></umbraco:Macro>
I can get the URL through a Razor Macro, but how do I pass it to the macro above as the sourceMP4 parameter?
Alternatively - how do I get the URL of the umbracofile and insert it using other methods. Is the answer maybe to be found here:
http://our.umbraco.org/wiki/reference/templates/umbracomacro-element/macro-parameters/advanced-macro-parameter-syntax
Umb version 4.7.1
To get the URL of the umbracofile, use the getmedia method in the xslt, eg
umbraco.library:GetMedia($foo, true)/umbracoFile
is working on a reply...