Back to Frontend

ImmersiveVideo.Scala

common/app/views/fragments/immersiveVideo.scala.html

latest644 B
Original Source

@import model.{ContentPage, VideoPlayer} @import views.support.Video640 @(page: ContentPage)(implicit request: RequestHeader)

@page.item.elements.mainVideo.map { video => @defining( VideoPlayer( video, Video640, page.item.trail.headline, autoPlay = false, showControlsAtStart = true, overrideIsRatioHd = None, embedPath = page.item.content.mainVideoCanonicalPath, path = page.item.content.mainVideoCanonicalPath ) ) { player => @fragments.media.video(player, enhance = true, false) @*This should ideally be the video publication date (and not the article one) but at the moment this info is not exposed via the article capi endpoint*@ } }