How can I upload a video to the media gallery and use a media picker to display it on the content page.
I have been able to use the recommended approach for images (as shown below), but I can't seem to find a suitable method to show a local video. The video cannot be from an online resource i.e. YouTube.
@{
var Image= Model.Content.GetPropertyValue<IPublishedContent>("Image");
if (Image!= null)
{
<img src="@Image.Url" class="Image" alt="@Image.GetPropertyValue("alt")" />
}
}
Keep in mind that video does take alot of bandwith, so the editors need to be carefull not to upload videos that are too big. Some formats can be streamed, others need a full download - it all depends on the codec used.
Video - Media Picker
How can I upload a video to the media gallery and use a media picker to display it on the content page.
I have been able to use the recommended approach for images (as shown below), but I can't seem to find a suitable method to show a local video. The video cannot be from an online resource i.e. YouTube.
Thanks for any help provided.
Hi Curtis, welcome to the forum :)
You need to allow the fileformat in the media section, and then you need to build the html to show the video, something like https://www.w3schools.com/html/html5_video.asp
Keep in mind that video does take alot of bandwith, so the editors need to be carefull not to upload videos that are too big. Some formats can be streamed, others need a full download - it all depends on the codec used.
is working on a reply...