Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data ArchiveMode
- data MediaMode
- data SessionOptions = SessionOptions {}
- data Session = Session {}
- sessionOpts :: SessionOptions
- create :: Client -> SessionOptions -> IO (Either OTError Session)
Documentation
data ArchiveMode Source #
Manual, as it implies, requires archives to be manually started and stopped. Always means that archives will automatically be created.
Instances
Relayed sessions will attempt to use peer-to-peer (p2p) connections.
Routed sessions will use the OpenTok Media Router
Instances
Eq MediaMode Source # | |
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 # | |
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 IPv4
address may be provided as a location hint which will
be used in selecting an OpenTok Media Router for the session.
Instances
An OpenTok Session
Session { apiKey ::String
, sessionId ::String
, mediaMode ::MediaMode
, archiveMode ::ArchiveMode
}
create :: Client -> SessionOptions -> IO (Either OTError Session) Source #
Create a new OpenTok Session