- Inherits:
- Object
- Defined in:
- lib/opentok/archives.rb
Overview
A class for working with OpenTok archives.
Instance Method Summary
-
#all(options = {}) ⇒ ArchiveList
Returns an ArchiveList, which is an array of archives that are completed and in-progress, for your API key.
-
#create(session_id, options = {}) ⇒ Archive
Starts archiving an OpenTok session.
-
#delete_by_id(archive_id) ⇒ Object
Deletes an OpenTok archive.
-
#find(archive_id) ⇒ Archive
Gets an Archive object for the given archive ID.
-
#layout(archive_id, options = {}) ⇒ Object
Sets the layout type for a composed archive.
-
#stop_by_id(archive_id) ⇒ Archive
Stops an OpenTok archive that is being recorded.
Instance Method Details
#all(options = {}) ⇒ ArchiveList
Returns an ArchiveList, which is an array of archives that are completed and in-progress, for your API key.
#create(session_id, options = {}) ⇒ Archive
Starts archiving an OpenTok session.
Clients must be actively connected to the OpenTok session for you to successfully start recording an archive.
You can only record one archive at a time for a given session. You can only record archives of sessions that use the OpenTok Media Router (sessions with the media mode set to routed); you cannot archive sessions with the media mode set to relayed.
For more information on archiving, see the OpenTok archiving programming guide.
#delete_by_id(archive_id) ⇒ Object
Deletes an OpenTok archive.
You can only delete an archive which has a status of “available”, “uploaded”, or “deleted”. Deleting an archive removes its record from the list of archives. For an “available” archive, it also removes the archive file, making it unavailable for download. For a “deleted” archive, the archive remains deleted.
#find(archive_id) ⇒ Archive
Gets an Archive object for the given archive ID.
#layout(archive_id, options = {}) ⇒ Object
Sets the layout type for a composed archive. For a description of layout types, see Customizing the video layout for composed archives.
#stop_by_id(archive_id) ⇒ Archive
Stops an OpenTok archive that is being recorded.
Archives automatically stop recording after 120 minutes or when all clients have disconnected from the session being archived.