Starting to get a correct video position
This commit is contained in:
parent
a7c1f13f99
commit
1ea10529bf
18
src/Main.elm
18
src/Main.elm
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue