mpv-0.1.0.0: Mpv Client for Polysemy
Safe HaskellSafe-Inferred
LanguageHaskell2010

Mpv

Synopsis

Introduction

This is an implementation of an mpv client using its JSON IPC API, built with [https:/hackage.haskell.orgpackage/polysemy].

Effects

data Mpv :: Effect Source #

Instances

Instances details
type DefiningModule Mpv Source # 
Instance details

Defined in Mpv.Effect.Mpv

type DefiningModule Mpv = "Mpv.Effect.Mpv"

data VideoPlayer (meta :: Type) :: Effect Source #

Instances

Instances details
type DefiningModule VideoPlayer Source # 
Instance details

Defined in Mpv.Effect.VideoPlayer

type DefiningModule VideoPlayer = "Mpv.Effect.VideoPlayer"

current :: forall meta r. MemberWithError (VideoPlayer meta) r => Sem r (Maybe meta) Source #

load :: forall meta r. MemberWithError (VideoPlayer meta) r => meta -> Path Abs File -> Sem r () Source #

pause :: forall meta r. MemberWithError (VideoPlayer meta) r => Sem r PlaybackState Source #

stop :: forall meta r. MemberWithError (VideoPlayer meta) r => Sem r () Source #

seek :: forall meta r. MemberWithError (VideoPlayer meta) r => Double -> SeekFlags -> Sem r () Source #

info :: forall meta r. MemberWithError (VideoPlayer meta) r => Sem r MpvInfo Source #

subtitles :: forall meta r. MemberWithError (VideoPlayer meta) r => Sem r Subtitles Source #

setSubtitle :: forall meta r. MemberWithError (VideoPlayer meta) r => SubtitleId -> Sem r () Source #

subDelay :: forall meta r. MemberWithError (VideoPlayer meta) r => Sem r SubDelay Source #

setSubDelay :: forall meta r. MemberWithError (VideoPlayer meta) r => SubDelay -> Sem r () Source #

addSubDelay :: forall meta r. MemberWithError (VideoPlayer meta) r => SubDelay -> Sem r SubDelay Source #

subFps :: forall meta r. MemberWithError (VideoPlayer meta) r => Sem r SubFps Source #

setSubFps :: forall meta r. MemberWithError (VideoPlayer meta) r => SubFps -> Sem r () Source #

volume :: forall meta r. MemberWithError (VideoPlayer meta) r => Sem r Volume Source #

setVolume :: forall meta r. MemberWithError (VideoPlayer meta) r => Volume -> Sem r () Source #

adjustVolumeBy :: forall meta r. MemberWithError (VideoPlayer meta) r => Volume -> Sem r Volume Source #

audios :: forall meta r. MemberWithError (VideoPlayer meta) r => Sem r AudioTracks Source #

setAudio :: forall meta r. MemberWithError (VideoPlayer meta) r => AudioId -> Sem r () Source #

audioDelay :: forall meta r. MemberWithError (VideoPlayer meta) r => Sem r AudioDelay Source #

setAudioDelay :: forall meta r. MemberWithError (VideoPlayer meta) r => AudioDelay -> Sem r () Source #

duration :: forall meta r. MemberWithError (VideoPlayer meta) r => Sem r VideoDuration Source #

progress :: forall meta r. MemberWithError (VideoPlayer meta) r => Sem r VideoProgress Source #

expired :: forall meta r. MemberWithError (VideoPlayer meta) r => Sem r VideoExpired Source #

Interpreters

Misc

data MpvError Source #

Constructors

MpvError Text 

Instances

Instances details
FromJSON MpvError Source # 
Instance details

Defined in Mpv.Data.MpvError

ToJSON MpvError Source # 
Instance details

Defined in Mpv.Data.MpvError

Show MpvError Source # 
Instance details

Defined in Mpv.Data.MpvError

Eq MpvError Source # 
Instance details

Defined in Mpv.Data.MpvError

data MpvEvent Source #

Constructors

MpvEvent EventName (Some Event) 

Instances

Instances details
FromJSON MpvEvent Source # 
Instance details

Defined in Mpv.Data.MpvEvent

ToJSON MpvEvent Source # 
Instance details

Defined in Mpv.Data.MpvEvent

Generic MpvEvent Source # 
Instance details

Defined in Mpv.Data.MpvEvent

Associated Types

type Rep MpvEvent :: Type -> Type #

Methods

from :: MpvEvent -> Rep MpvEvent x #

to :: Rep MpvEvent x -> MpvEvent #

Show MpvEvent Source # 
Instance details

Defined in Mpv.Data.MpvEvent

Eq MpvEvent Source # 
Instance details

Defined in Mpv.Data.MpvEvent

type Rep MpvEvent Source # 
Instance details

Defined in Mpv.Data.MpvEvent

type Rep MpvEvent = D1 ('MetaData "MpvEvent" "Mpv.Data.MpvEvent" "mpv-0.1.0.0-JpycyfjAFzQI1mqEzHeqWy" 'False) (C1 ('MetaCons "MpvEvent" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EventName) :*: S1 ('MetaSel ('Just "payload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Some Event))))

data Event (name :: EventName) Source #

Instances

Instances details
GEq Event Source # 
Instance details

Defined in Mpv.Data.Event

Methods

geq :: forall (a :: k) (b :: k). Event a -> Event b -> Maybe (a :~: b) #

GShow Event Source # 
Instance details

Defined in Mpv.Data.Event

Methods

gshowsPrec :: forall (a :: k). Int -> Event a -> ShowS #

ToJSON (Some Event) Source # 
Instance details

Defined in Mpv.Data.Event

data EventName Source #

Instances

Instances details
FromJSON EventName Source # 
Instance details

Defined in Mpv.Data.EventName

ToJSON EventName Source # 
Instance details

Defined in Mpv.Data.EventName

Generic EventName Source # 
Instance details

Defined in Mpv.Data.EventName

Associated Types

type Rep EventName :: Type -> Type #

Show EventName Source # 
Instance details

Defined in Mpv.Data.EventName

Eq EventName Source # 
Instance details

Defined in Mpv.Data.EventName

GEq Event Source # 
Instance details

Defined in Mpv.Data.Event

Methods

geq :: forall (a :: k) (b :: k). Event a -> Event b -> Maybe (a :~: b) #

GShow Event Source # 
Instance details

Defined in Mpv.Data.Event

Methods

gshowsPrec :: forall (a :: k). Int -> Event a -> ShowS #

ToJSON (Some Event) Source # 
Instance details

Defined in Mpv.Data.Event

type Rep EventName Source # 
Instance details

Defined in Mpv.Data.EventName

type Rep EventName = D1 ('MetaData "EventName" "Mpv.Data.EventName" "mpv-0.1.0.0-JpycyfjAFzQI1mqEzHeqWy" 'False) ((C1 ('MetaCons "FileLoaded" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EndFile" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Pause" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Unknown" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Other" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))))