Grand espoir

pull/1/head
Jean-Christophe Jameux 3 years ago
parent 14f4d3f557
commit 7ffed0699d
  1. 42
      src/GenerateurH5P.elm

@ -1743,7 +1743,7 @@ type alias InteractiveVideoL10n =
, totalTime : String , totalTime : String
, unmute : String , unmute : String
, videoPausedAnnouncement : String , videoPausedAnnouncement : String
, videoProgressBar : String , videoProgressBar : Maybe String
} }
@ -2082,7 +2082,7 @@ encodedInteractiveVideoInteractiveVideoVideoTextTracksVideoTrackObject interacti
encodedInteractiveVideoL10n : InteractiveVideoL10n -> E.Value encodedInteractiveVideoL10n : InteractiveVideoL10n -> E.Value
encodedInteractiveVideoL10n interactiveVideoL10n = encodedInteractiveVideoL10n interactiveVideoL10n =
E.object E.object <|
[ ( "answered", E.string interactiveVideoL10n.answered ) [ ( "answered", E.string interactiveVideoL10n.answered )
, ( "back", E.string interactiveVideoL10n.back ) , ( "back", E.string interactiveVideoL10n.back )
, ( "bookmarks", E.string interactiveVideoL10n.bookmarks ) , ( "bookmarks", E.string interactiveVideoL10n.bookmarks )
@ -2128,6 +2128,13 @@ encodedInteractiveVideoL10n interactiveVideoL10n =
, ( "unmute", E.string interactiveVideoL10n.unmute ) , ( "unmute", E.string interactiveVideoL10n.unmute )
, ( "videoPausedAnnouncement", E.string interactiveVideoL10n.videoPausedAnnouncement ) , ( "videoPausedAnnouncement", E.string interactiveVideoL10n.videoPausedAnnouncement )
] ]
++ (case interactiveVideoL10n.videoProgressBar of
Just videoProgressBar ->
[ ( "videoProgressBar", E.string videoProgressBar ) ]
Nothing ->
[]
)
encodedInteractiveVideoOverride : InteractiveVideoOverride -> E.Value encodedInteractiveVideoOverride : InteractiveVideoOverride -> E.Value
@ -2315,13 +2322,22 @@ branchingScenarioContentParser depth state =
(succeed (succeed
(\interactiveVideo -> (\interactiveVideo ->
let let
interactiveVideoHelp =
interactiveVideo
|> R.map
(with2
l10nField
videoProgressBarField
(Just "Progression vidéo")
)
newContent = newContent =
buildBranchingScenarioContent buildBranchingScenarioContent
"Interactive Video" "Interactive Video"
"H5P.InteractiveVideo 1.24" "H5P.InteractiveVideo 1.24"
(Just (state.lastIdUsed + 2)) (Just (state.lastIdUsed + 2))
(R.map InteractiveVideoBranchingScenarioContentTypeParams (R.map InteractiveVideoBranchingScenarioContentTypeParams
interactiveVideo interactiveVideoHelp
) )
in in
{ state { state
@ -2674,7 +2690,9 @@ buildBranchingScenarioContent contentType library nextContentId params =
buildBranchingScenarioContentHelp contentType library nextContentId params uuid = buildBranchingScenarioContentHelp contentType library nextContentId params uuid =
{ contentBehaviour = "useBehavioural" { contentBehaviour = "useBehavioural"
, feedback = { subtitle = "" } , feedback =
{ subtitle = ""
}
, forceContentFinished = "useBehavioural" , forceContentFinished = "useBehavioural"
, showContentTitle = False , showContentTitle = False
, nextContentId = Nothing , nextContentId = Nothing
@ -2684,7 +2702,7 @@ buildBranchingScenarioContentHelp contentType library nextContentId params uuid
, subContentId = "" , subContentId = ""
, metadata = , metadata =
{ license = "U" { license = "U"
, title = "" , title = "Sans titre"
, contentType = "" , contentType = ""
} }
} }
@ -3003,7 +3021,7 @@ buildInteractiveVideoHelp title link uuid1 uuid2 =
, totalTime = "Temps total :" , totalTime = "Temps total :"
, unmute = "Activer le son, présentement en sourdine." , unmute = "Activer le son, présentement en sourdine."
, videoPausedAnnouncement = "La vidéo est en pause." , videoPausedAnnouncement = "La vidéo est en pause."
, videoProgressBar = "Progression vidéo" , videoProgressBar = Nothing
} }
, override = , override =
{ autoplay = False { autoplay = False
@ -3134,6 +3152,18 @@ taskField =
} }
l10nField =
{ with = \value record -> { record | l10n = value }
, accessor = .l10n
}
videoProgressBarField =
{ with = \value record -> { record | videoProgressBar = value }
, accessor = .videoProgressBar
}
presentationField = presentationField =
{ with = \value record -> { record | presentation = value } { with = \value record -> { record | presentation = value }
, accessor = .presentation , accessor = .presentation

Loading…
Cancel
Save