Skip to content

Instantly share code, notes, and snippets.

@anacrolix
Created October 19, 2017 09:23
Show Gist options
  • Save anacrolix/1f4072315995e31d63e95b4ef2c0da84 to your computer and use it in GitHub Desktop.
Save anacrolix/1f4072315995e31d63e95b4ef2c0da84 to your computer and use it in GitHub Desktop.
type Msg
= ApiAvailability Cast.ApiAvailability
| CastContext Cast.JsContext
| RequestSession
| UrlChange Navigation.Location
| Navigate String
| NavbarMsg Navbar.State
| LoadMedia
| ProposedMediaInput (Cast.Media -> String -> Cast.Media) String
| ClickedPlayerControl Cast.PlayerAction
| ProgressClicked Float
| RunCmd (Cmd Msg)
| Update (Model -> ( Model, Cmd Msg ))
| MouseoverProgress MouseoverEvent
| MediaLoaded (Maybe String)
| SetPage Page
type alias Model =
{ api : Cast.ApiAvailability
, setOptions : Bool
, context : Maybe Cast.Context
, navbarState : Navbar.State
, proposedMedia : Cast.Media
, progressHover : Maybe MouseoverEvent
, loadingMedia : Bool
, page : Page
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment