Module

Clappr.Events

Package
purescript-clappr
Repository
paluh/purescript-clappr

#ClapprEff Source

type ClapprEff eff = (clappr :: CLAPPR, exception :: EXCEPTION | eff)

#NativeBitrate Source

type NativeBitrate = { bandwidth :: Nullable Int, height :: Int, width :: Int }

#onContainerBitrateImpl Source

#Bitrate Source

type Bitrate = { bandwidth :: Maybe Int, height :: Int, width :: Int }

#onContainerBitrate Source

onContainerBitrate :: forall eff. Clappr -> (Bitrate -> Eff (ClapprEff eff) Unit) -> Eff (ClapprEff eff) Unit

#ContainerError Source

data ContainerError :: Type

XXX: Fix error type

#onContainerErrorImpl Source

#onContainerError Source

onContainerError :: forall eff. Clappr -> (ContainerError -> Eff (ClapprEff eff) Unit) -> Eff (ClapprEff eff) Unit

#ContainerPlaybackState Source

#onContainerPlaybackstate Source

#PlaybackError Source

data PlaybackError :: Type

XXX: Fix error type

#onPlaybackErrorImpl Source

#onPlaybackError Source

onPlaybackError :: forall eff. Clappr -> (PlaybackError -> Eff (ClapprEff eff) Unit) -> Eff (ClapprEff eff) Unit

#PlayerError Source

data PlayerError :: Type

XXX: Fix error type

#onPlayerErrorImpl Source

#onPlayerError Source

onPlayerError :: forall eff. Clappr -> (PlayerError -> Eff (ClapprEff eff) Unit) -> Eff (ClapprEff eff) Unit

#onPlayerFullscreenImpl Source

#onPlayerFullscreen Source

onPlayerFullscreen :: forall eff. Clappr -> (Boolean -> Eff (ClapprEff eff) Unit) -> Eff (ClapprEff eff) Unit

#onPlayerPauseImpl Source

#onPlayerPause Source

onPlayerPause :: forall eff. Clappr -> Eff (ClapprEff eff) Unit -> Eff (ClapprEff eff) Unit

#onPlayerPlayImpl Source

#onPlayerPlay Source

onPlayerPlay :: forall eff. Clappr -> Eff (ClapprEff eff) Unit -> Eff (ClapprEff eff) Unit

#onPlayerReadyImpl Source

#onPlayerReady Source

onPlayerReady :: forall eff. Clappr -> Eff (ClapprEff eff) Unit -> Eff (ClapprEff eff) Unit

#Size Source

data Size :: Type

XXX: Fix size type

#onPlayerResizeImpl Source

#onPlayerResize Source

onPlayerResize :: forall eff. Clappr -> (Size -> Eff (ClapprEff eff) Unit) -> Eff (ClapprEff eff) Unit

#onPlayerStopImpl Source

#onPlayerStop Source

onPlayerStop :: forall eff. Clappr -> Eff (ClapprEff eff) Unit -> Eff (ClapprEff eff) Unit

#Progress Source

type Progress = { current :: Number, total :: Number }

#onPlayerTimeupdateImpl Source

#onPlayerTimeupdate Source

onPlayerTimeupdate :: forall eff. Clappr -> (Progress -> Eff (ClapprEff eff) Unit) -> Eff (ClapprEff eff) Unit

#onPlayerVolumeupdateImpl Source

#onPlayerVolumeupdate Source

onPlayerVolumeupdate :: forall eff. Clappr -> (Number -> Eff (ClapprEff eff) Unit) -> Eff (ClapprEff eff) Unit