Starting to get a correct video position

This commit is contained in:
Thomas Forgione 2021-06-10 10:18:17 +02:00
parent a7c1f13f99
commit 1ea10529bf
1 changed files with 15 additions and 3 deletions

View File

@ -138,7 +138,7 @@ update msg model =
view : Model -> Browser.Document Msg view : Model -> Browser.Document Msg
view model = view model =
{ title = "Hello" { title = "Hello"
, body = [ Element.layout [] (video model) ] , body = [ Element.layout [ Element.width Element.fill, Element.height Element.fill ] (video model) ]
} }
@ -245,8 +245,20 @@ video model =
] ]
) )
in in
Element.el (Element.inFront bar :: Element.width (Element.px 1000) :: Element.htmlAttribute (Html.Attributes.id "full") :: playerEvents) Element.el
(Element.html (Html.video videoEvents [])) (Element.inFront bar
:: Element.width Element.fill
:: Element.height Element.fill
:: Background.color (Element.rgb 0 0 0)
:: Element.htmlAttribute (Html.Attributes.id "full")
:: playerEvents
)
(Element.html
(Html.video
videoEvents
[]
)
)
playPauseButton : Bool -> Element Msg playPauseButton : Bool -> Element Msg