public class Archive
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Archive.OutputMode
Defines values used in the
ArchiveProperties.Builder.outputMode(com.opentok.Archive.OutputMode) method
and returned by the getOutputMode() method. |
static class |
Archive.Status
Defines values returned by the
getStatus() method. |
static class |
Archive.StreamMode
Defines values used in the
ArchiveProperties.Builder.streamMode(com.opentok.Archive.StreamMode) method
and returned by the getStreamMode() method. |
| Modifier and Type | Method and Description |
|---|---|
long |
getCreatedAt()
The time at which the archive was created, in milliseconds since the Unix epoch.
|
int |
getDuration()
The duration of the archive, in seconds.
|
java.lang.String |
getId()
The archive ID.
|
java.lang.String |
getMultiArchiveTag()
Returns the multiArchiveTag if set for the Archive.
|
java.lang.String |
getName()
The name of the archive.
|
Archive.OutputMode |
getOutputMode()
The output mode to be generated for this archive:
composed or individual. |
int |
getPartnerId()
The OpenTok API key associated with the archive.
|
java.lang.String |
getPassword()
The encrypted password if an archive storage was configured to use an encryption key
|
java.lang.String |
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.
|
java.lang.String |
getResolution()
The resolution of the archive.
|
java.lang.String |
getSessionId()
The session ID of the OpenTok session associated with this archive.
|
long |
getSize()
The size of the MP4 file.
|
Archive.Status |
getStatus()
The status of the archive, as defined by the
Archive.Status enum. |
Archive.StreamMode |
getStreamMode()
The stream mode to used for selecting streams to be included in this archive:
StreamMode.AUTO or StreamMode.MANUAL. |
java.lang.String |
getUrl()
The download URL of the available MP4 file.
|
boolean |
hasAudio()
Whether the archive has an audio track (
true) or not (false). |
boolean |
hasVideo()
Whether the archive has a video track (
true) or not (false). |
static Archive |
makeArchive() |
java.lang.String |
toString() |
public static Archive makeArchive()
public long getCreatedAt()
public int getDuration()
public java.lang.String getId()
public java.lang.String getName()
public java.lang.String getResolution()
public int getPartnerId()
public java.lang.String getReason()
public java.lang.String getSessionId()
public long getSize()
public Archive.Status getStatus()
Archive.Status enum.public java.lang.String getUrl()
OpenTok.listArchives() or OpenTok.getArchive(String)
method.public boolean hasVideo()
true) or not (false).public boolean hasAudio()
true) or not (false).public Archive.OutputMode getOutputMode()
composed or individual.public Archive.StreamMode getStreamMode()
StreamMode.AUTO or StreamMode.MANUAL.public java.lang.String getPassword()
public java.lang.String getMultiArchiveTag()
public java.lang.String toString()
toString in class java.lang.Object