Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Session
- data SessionOptions
- data MediaMode
- create :: Client -> SessionOptions -> IO (Either OTError Session)
- sessionOpts :: SessionOptions
Documentation
Represents an 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.
Instances
Show SessionOptions Source # | |
Defined in OpenTok.Session showsPrec :: Int -> SessionOptions -> ShowS # show :: SessionOptions -> String # showList :: [SessionOptions] -> ShowS # | |
Generic SessionOptions Source # | |
Defined in OpenTok.Session type Rep SessionOptions :: * -> * # from :: SessionOptions -> Rep SessionOptions x # to :: Rep SessionOptions x -> SessionOptions # | |
ToJSON SessionOptions Source # | |
Defined in OpenTok.Session toJSON :: SessionOptions -> Value # toEncoding :: SessionOptions -> Encoding # toJSONList :: [SessionOptions] -> Value # toEncodingList :: [SessionOptions] -> Encoding # | |
type Rep SessionOptions Source # | |
Defined in OpenTok.Session |
Relayed sessions will attempt to use peer-to-peer (p2p) connections.
Routed sessions will use the OpenTok Media Router
Instances
Data MediaMode Source # | |
Defined in OpenTok.Session 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 # | |
Generic MediaMode Source # | |
ToJSON MediaMode Source # | |
Defined in OpenTok.Session | |
FromJSON MediaMode Source # | |
type Rep MediaMode Source # | |
create :: Client -> SessionOptions -> IO (Either OTError Session) Source #
Create a new OpenTok Session