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. |
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 milliseconds.
|
java.lang.String |
getId()
The archive ID.
|
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 |
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 |
getSessionId()
The session ID of the OpenTok session associated with this archive.
|
int |
getSize()
The size of the MP4 file.
|
Archive.Status |
getStatus()
The status of the archive, as defined by the
Archive.Status enum. |
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 int getPartnerId()
public java.lang.String getReason()
public java.lang.String getSessionId()
public int 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 java.lang.String toString()
toString
in class java.lang.Object