Package com.opentok
Class Archive
java.lang.Object
com.opentok.Archive
Represents an archive of an OpenTok session.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDefines values used in theArchiveProperties.Builder.outputMode(com.opentok.Archive.OutputMode)method and returned by thegetOutputMode()method.static enumDefines values returned by thegetStatus()method.static enumDefines values used in theArchiveProperties.Builder.streamMode(com.opentok.Archive.StreamMode)method and returned by thegetStreamMode()method. -
Method Summary
Modifier and TypeMethodDescriptionlongThe time at which the archive was created, in milliseconds since the Unix epoch.intThe duration of the archive, in seconds.getId()The archive ID.intThe maximum bitrate of the archive, in bits per second.Returns the multiArchiveTag if set for the Archive.getName()The name of the archive.The output mode to be generated for this archive:composedorindividual.intThe OpenTok API key associated with the archive.The encrypted password if an archive storage was configured to use an encryption keyintReturns the quantization parameter if set for the Archive.For archives with the status Status.STOPPED or Status.FAILED, this string describes the reason the archive stopped (such as "maximum duration exceeded") or failed.The resolution of the archive.The session ID of the OpenTok session associated with this archive.longgetSize()The size of the MP4 file.The status of the archive, as defined by theArchive.Statusenum.The stream mode to used for selecting streams to be included in this archive:StreamMode.AUTOorStreamMode.MANUAL.getUrl()The download URL of the available MP4 file.booleanhasAudio()Whether the archive has an audio track (true) or not (false).booleanhasVideo()Whether the archive has a video track (true) or not (false).static ArchivetoString()
-
Method Details
-
makeArchive
-
getCreatedAt
public long getCreatedAt()The time at which the archive was created, in milliseconds since the Unix epoch. -
getDuration
public int getDuration()The duration of the archive, in seconds. -
getId
The archive ID. -
getName
The name of the archive. -
getResolution
The resolution of the archive. -
getPartnerId
public int getPartnerId()The OpenTok API key associated with the archive. -
getReason
For archives with the status Status.STOPPED or Status.FAILED, this string describes the reason the archive stopped (such as "maximum duration exceeded") or failed. -
getSessionId
The session ID of the OpenTok session associated with this archive. -
getSize
public long getSize()The size of the MP4 file. For archives that have not been generated, this value is set to 0. -
getMaxBitrate
public int getMaxBitrate()The maximum bitrate of the archive, in bits per second.- Since:
- 4.15.0
-
getStatus
The status of the archive, as defined by theArchive.Statusenum. -
getUrl
The download URL of the available MP4 file. This is only set for an archive with the status set to Status.AVAILABLE; for other archives, (including archives with the status of Status.UPLOADED) this method returns null. The download URL is obfuscated, and the file is only available from the URL for 10 minutes. To generate a new URL, call theOpenTok.listArchives()orOpenTok.getArchive(String)method. -
hasVideo
public boolean hasVideo()Whether the archive has a video track (true) or not (false). -
hasAudio
public boolean hasAudio()Whether the archive has an audio track (true) or not (false). -
getOutputMode
The output mode to be generated for this archive:composedorindividual. -
getStreamMode
The stream mode to used for selecting streams to be included in this archive:StreamMode.AUTOorStreamMode.MANUAL. -
getPassword
The encrypted password if an archive storage was configured to use an encryption key -
getMultiArchiveTag
Returns the multiArchiveTag if set for the Archive. -
getQuantizationParameter
public int getQuantizationParameter()Returns the quantization parameter if set for the Archive.- Returns:
- The quantization parameter, between 15 and 40.
- Since:
- 4.16.0
-
toString
-