Video

The Limbo TwentyThree Video property editor allows selecting a TwentyThree video by either entering the URL or embed code manually or by selecting the video via the property editor's video picker option.

Valid properties using this property editor will return an instance of TwentyThreeValue - or more specifically TwentyThreeVideoValue or TwentyThreeSpotValue depending on the type of the video that has been inserted.

@using Limbo.Umbraco.TwentyThree.Models
@inherits UmbracoViewPage

@{

    TwentyThreeValue? twentyThree = Model.Value<TwentyThreeValue>("video");

    if (twentyThree is TwentyThreeVideoValue video) {

        <h2>@video.Details.Title</h2>

        @video.Embed.Html

    } else if (twentyThree is TwentyThreeSpotValue spot) {

        <h2>@spot.Details.Title</h2>

        @spot.Embed.Html

    }

}