Module

Clappr.Plugins.LevelSelector

Package
purescript-clappr
Repository
paluh/purescript-clappr

#levelSelector Source

#Level Source

type Level = { audioCodec :: String, bitrate :: Int, fragmentError :: Boolean, height :: Int, url :: Array String, urlId :: Int, videoCodec :: String, width :: Int }

#Info Source

type Info = { id :: Int, label :: String, level :: Level }

#Config Source

type Config = { label :: Info -> String, title :: Maybe String }

#Undefined Source

data Undefined :: Type

#NativeConfig Source

type NativeConfig = { labelCallback :: Fn2 Info Undefined String, title :: Nullable String }

#NativeOptionsRow Source

type NativeOptionsRow r = (levelSelectorConfig :: NativeConfig | r)

#setup Source

setup :: forall r. Lacks "levelSelectorConfig" r => Config -> Record NativeOptionsRow + r -> Record NativeOptionsRow + NativeOptionsRow + r