Module

Clappr

Package
purescript-clappr
Repository
paluh/purescript-clappr

#Clappr Source

data Clappr :: Type

#CLAPPR Source

data CLAPPR :: Effect

#Plugin Source

data Plugin :: Type

#FlashPlugin Source

data FlashPlugin :: Type

Flash backend has some global initialization. We are caching instance on window level to force only single instance.

#flasHls Source

flasHls :: forall eff. Eff (clappr :: CLAPPR | eff) FlashPlugin

#OptionsBase Source

type OptionsBase o = { autoPlay :: Boolean, baseUrl :: Maybe String, hlsjsConfig :: Maybe HlsjsConfig, mute :: Boolean, source :: String | o }

This base config is reused by Pux/React bindings

#Options Source

type Options = OptionsBase (parent :: Parent)

Change parent so it could be only HTMLElement

#clappr Source

clappr :: forall r eff. NativeOptions r -> Eff (clappr :: CLAPPR, dom :: DOM, exception :: EXCEPTION | eff) Clappr

#HlsjsConfig Source

type HlsjsConfig = { debug :: Boolean, liveSyncDuration :: Int, maxBufferLength :: Int, maxBufferSize :: Int }

#NativeOptionsRow Source

type NativeOptionsRow r = (autoPlay :: Boolean, baseUrl :: Nullable String, hlsjsConfig :: Nullable HlsjsConfig, mute :: Boolean, parent :: Nullable HTMLElement, parentId :: Nullable String, plugins :: Array Plugin, source :: String | r)

#NativeOptions Source

#clapprImpl Source

clapprImpl :: forall p eff. EffFn1 (clappr :: CLAPPR, dom :: DOM, exception :: EXCEPTION | eff) (NativeOptions p) Clappr