Update elm-video

This commit is contained in:
Thomas Forgione 2021-06-21 15:16:58 +02:00
parent 31cc8a1bb9
commit ab510e4ec2
3 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit d1bd418e890c337b010a9cd906679bd729a00fd0
Subproject commit b41c62e9384edcb59ceb0616c045ac247decaae0

View File

@ -38,7 +38,7 @@
}
});
setupApp(app);
PolymnyVideo.setup(app);
if (app.ports !== undefined) {
if (app.ports.setDarkMode !== undefined) {

View File

@ -247,7 +247,7 @@ update msg model =
( Just p, Just v ) ->
let
( el, videoCommand ) =
Video.fromUrl ("/videos/" ++ p.url ++ v.url ++ "/manifest.m3u8") "video"
Video.fromConfig { url = "/videos/" ++ p.url ++ v.url ++ "/manifest.m3u8", id = "video", autoplay = True }
in
( Video p v el Nothing, Cmd.map VideoMsg videoCommand )