opentok-0.0.2: An OpenTok SDK for Haskell

Safe HaskellNone
LanguageHaskell2010

OpenTok.Session

Synopsis

Documentation

data Session Source #

Represents an OpenTok Session

Instances
Show Session Source # 
Instance details

Defined in OpenTok.Session

data SessionOptions Source #

Defines options for an OpenTok Session

MediaMode specifies how clients in the session will send audio and video streams.

ArchiveMode specifies how archives will be created.

An IPAddress may be provided as a location hint which will be when choosing an OpenTok Media Router for the session.

data MediaMode Source #

Relayed sessions will attempt to use peer-to-peer (p2p) connections.

Routed sessions will use the OpenTok Media Router

Constructors

Relayed 
Routed 
Instances
Data MediaMode Source # 
Instance details

Defined in OpenTok.Session

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MediaMode -> c MediaMode #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MediaMode #

toConstr :: MediaMode -> Constr #

dataTypeOf :: MediaMode -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c MediaMode) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MediaMode) #

gmapT :: (forall b. Data b => b -> b) -> MediaMode -> MediaMode #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MediaMode -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MediaMode -> r #

gmapQ :: (forall d. Data d => d -> u) -> MediaMode -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> MediaMode -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> MediaMode -> m MediaMode #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MediaMode -> m MediaMode #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MediaMode -> m MediaMode #

Show MediaMode Source # 
Instance details

Defined in OpenTok.Session

Generic MediaMode Source # 
Instance details

Defined in OpenTok.Session

Associated Types

type Rep MediaMode :: * -> * #

ToJSON MediaMode Source # 
Instance details

Defined in OpenTok.Session

FromJSON MediaMode Source # 
Instance details

Defined in OpenTok.Session

type Rep MediaMode Source # 
Instance details

Defined in OpenTok.Session

type Rep MediaMode = D1 (MetaData "MediaMode" "OpenTok.Session" "opentok-0.0.2-6QBD2UBbaJeJBF73ZiwTob" False) (C1 (MetaCons "Relayed" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "Routed" PrefixI False) (U1 :: * -> *))

create :: Client -> SessionOptions -> IO (Either OTError Session) Source #

Create a new OpenTok Session

sessionOpts :: SessionOptions Source #

Default options for Session creation

mediaMode: Relayed

archiveMode: Manual

location: Nothing