Copied to clipboard

Flag this post as spam?

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


  • Hardik Gondalia 4 posts 96 karma points
    Feb 17, 2017 @ 13:30
    Hardik Gondalia
    0

    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. enter image description here enter image description here

    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?

    Watch: http://prntscr.com/e9wal1

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    May 22, 2017 @ 12:17
    Alex Skrypnyk
    0

    Hi Hardik

    It looks like your videos are not Media items, what is the type of video item in the media library?

    Thanks,

    Alex

Please Sign in or register to post replies

Write your reply to:

Draft