Copied to clipboard

Flag this post as spam?

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


  • Kimby Yarborough 1 post 71 karma points
    Dec 06, 2016 @ 22:28
    Kimby Yarborough
    0

    Video On Landing Page

    Is there a way to have a video/animation come up on the landing page of our website instead of just a still image? I have the video already in my media section but I'd like for our website to be more fluid and fun.

  • David Peck 690 posts 1896 karma points c-trib
    Dec 10, 2016 @ 07:54
    David Peck
    0

    Upload the video to Vimeo/ YouTube and then use the embed grid editor (if you're using the grid) or the Rich Text Editor's embed toolbar icon.

  • Aristotelis Pitaridis 84 posts 402 karma points
    Dec 11, 2016 @ 08:10
    Aristotelis Pitaridis
    1

    You can have the following code in your razor file.

    @{ 
        var VideoURL = Umbraco.TypedMedia(Model.Content.GetPropertyValue<int>("video")).Url;
    }
    
    <video autoplay controls width="320" height="240">
        <source src="@VideoURL" type="video/mp4" />
    </video>    
    

    In this example I assume that the alias of the media picker is called video.

  • David Peck 690 posts 1896 karma points c-trib
    Dec 11, 2016 @ 08:15
    David Peck
    0

    That's true. You could stick it in a video tag, but if you care about video streaming or browser support then you prolly want to use a service. Also JW Player if you don't want to use a service and want an HTML5 fallback.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies