Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data OutputMode
- data ArchiveResolution
- data ArchiveOptions = ArchiveOptions {}
- archiveOpts :: ArchiveOptions
- data ArchiveStatus
- data Archive = Archive {}
- data ListArchiveOptions = ListArchiveOptions {}
- listArchiveOpts :: ListArchiveOptions
- data ArchiveCollection = ArchiveCollection {}
- start :: Client -> ArchiveOptions -> IO (Either OTError Archive)
- stop :: Client -> ArchiveId -> IO (Either OTError Archive)
- list :: Client -> ListArchiveOptions -> IO (Either OTError ArchiveCollection)
- delete :: Client -> ArchiveId -> IO (Either OTError ArchiveId)
Documentation
data OutputMode Source #
Composed means that streams will be composed into a single file
Individual means that an individual file will be created for each stream
Instances
data ArchiveResolution Source #
SD (Standard Definition 640 x 480)
HD (High Definition 1280 x 720)
Instances
Show ArchiveResolution Source # | |
Defined in OpenTok.Archive showsPrec :: Int -> ArchiveResolution -> ShowS # show :: ArchiveResolution -> String # showList :: [ArchiveResolution] -> ShowS # | |
ToJSON ArchiveResolution Source # | |
Defined in OpenTok.Archive toJSON :: ArchiveResolution -> Value # toEncoding :: ArchiveResolution -> Encoding # toJSONList :: [ArchiveResolution] -> Value # toEncodingList :: [ArchiveResolution] -> Encoding # | |
FromJSON ArchiveResolution Source # | |
Defined in OpenTok.Archive parseJSON :: Value -> Parser ArchiveResolution # parseJSONList :: Value -> Parser [ArchiveResolution] # |
data ArchiveOptions Source #
Defines options for an Archive
sessionId: The session to be archived
hasAudio: Whether the archive will record audio
hasVideo: Whether the archive will record video
name: The name of the archive
Whether all streams in the archive are recorded to a
single file (Composed
) or to individual files (Individual
)
The resolution of the archive, either SD
(the default, 640 x 480),
or HD
(1280 x 720)
ArchiveOptions | |
|
Instances
data ArchiveStatus Source #
Status of an OpenTok Archive
Instances
An OpenTok Archive
Archive { id ::String
, status ::ArchiveStatus
, createdAt ::Integer
, size ::Int
, partnerId ::Int
, url :: MaybeString
, resolution ::ArchiveResolution
, outputMode ::OutputMode
, hasAudio ::Bool
, hasVideo ::Bool
, reason ::String
, name ::String
, updatedAt ::Integer
, duration ::Int
, sessionId ::String
}
Instances
data ListArchiveOptions Source #
Options for listing archives
ListArchiveOptions { _forSessionId ::Maybe
SessionId
, _count ::Int
, _offset ::Int
}
listArchiveOpts :: ListArchiveOptions Source #
Default List Archive options
ListArchiveOptions
{ _forSessionId = Nothing
, _offset = 0
, _count = 50
}
data ArchiveCollection Source #
Instances
Show ArchiveCollection Source # | |
Defined in OpenTok.Archive showsPrec :: Int -> ArchiveCollection -> ShowS # show :: ArchiveCollection -> String # showList :: [ArchiveCollection] -> ShowS # | |
Generic ArchiveCollection Source # | |
Defined in OpenTok.Archive type Rep ArchiveCollection :: * -> * # from :: ArchiveCollection -> Rep ArchiveCollection x # to :: Rep ArchiveCollection x -> ArchiveCollection # | |
FromJSON ArchiveCollection Source # | |
Defined in OpenTok.Archive parseJSON :: Value -> Parser ArchiveCollection # parseJSONList :: Value -> Parser [ArchiveCollection] # | |
type Rep ArchiveCollection Source # | |
Defined in OpenTok.Archive type Rep ArchiveCollection = D1 (MetaData "ArchiveCollection" "OpenTok.Archive" "opentok-0.0.5-IcL1zYCkr65C5B0v2oYVUO" False) (C1 (MetaCons "ArchiveCollection" PrefixI True) (S1 (MetaSel (Just "count") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int) :*: S1 (MetaSel (Just "items") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Archive]))) |
list :: Client -> ListArchiveOptions -> IO (Either OTError ArchiveCollection) Source #