I've media picker in my current Document Type. In that I have taken two Media picker. first for the multiple images slider and another for video.
Now I am trying to get this url in my code by given code:
var imageList = CurrentPage.productsSliderImages.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries);
var video = Umbraco.Media(CurrentPage.productSliderVideo);
I am getting ImageList successfully. But I am getting video null. If I
replace my video with any Image again its start working. Is there any
problem with Video or other file with media picker?
How to use Video in Media Picker
I've media picker in my current Document Type. In that I have taken two Media picker. first for the multiple images slider and another for video.
Now I am trying to get this url in my code by given code:
Watch: http://prntscr.com/e9wal1
Hi Hardik
It looks like your videos are not Media items, what is the type of video item in the media library?
Thanks,
Alex
is working on a reply...