Module
Clappr
- Package
- purescript-clappr
- Repository
- paluh/purescript-clappr
#FlashPlugin Source
data FlashPlugin :: Type
Flash backend has some global initialization. We are caching instance on window level to force only single instance.
#toPlugin Source
toPlugin :: FlashPlugin -> Plugin
#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
#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
type NativeOptions r = Record (NativeOptionsRow r)
#clapprImpl Source
clapprImpl :: forall p eff. EffFn1 (clappr :: CLAPPR, dom :: DOM, exception :: EXCEPTION | eff) (NativeOptions p) Clappr
#toNativeOptions Source
toNativeOptions :: Options -> NativeOptions ()