public class Broadcast
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Broadcast.StreamMode
Defines values used in the
BroadcastProperties.Builder.streamMode(com.opentok.Broadcast.StreamMode) method
and returned by the getStreamMode() method. |
| Modifier and Type | Method and Description |
|---|---|
long |
getCreatedAt()
The time at which the broadcast was started, in milliseconds since the Unix epoch.
|
java.lang.String |
getHls()
The HLS URL (if there is one) of the broadcast.
|
java.lang.String |
getHlsStatus()
The HLS status of the broadcast if known.
|
java.lang.String |
getId()
The broadcast ID.
|
int |
getMaxBitrate()
Maximum bitrate (bits per second) is an optional value allowed for the broadcast composing.
|
int |
getMaxDuration()
The maximum duration of the broadcast in seconds.
|
java.lang.String |
getMultiBroadcastTag()
Returns the multiBroadcastTag if set for the Broadcast.
|
int |
getProjectId()
The OpenTok API key associated with the broadcast.
|
java.lang.String |
getResolution()
The broadcast resolution.
|
java.util.List<Rtmp> |
getRtmpList()
A list of RTMP URLs (if there are any) of the broadcast.
|
java.lang.String |
getSessionId()
The session ID of the OpenTok session associated with this broadcast.
|
java.lang.String |
getStatus()
The broadcast status, either "started" or "stopped".
|
Broadcast.StreamMode |
getStreamMode()
The stream mode to used for selecting streams to be included in this archive:
StreamMode.AUTO or StreamMode.MANUAL. |
long |
getUpdatedAt()
The time at which the broadcast was updated, in milliseconds since the Unix epoch.
|
boolean |
hasAudio()
Whether the broadcast has audio (
true) or not (false). |
boolean |
hasVideo()
Whether the broadcast has video (
true) or not (false). |
static Broadcast |
makeBroadcast()
Do not call the
makeBroadcast() method. |
java.lang.String |
toString() |
public static Broadcast makeBroadcast()
makeBroadcast() method. To start a live streaming broadcast,
call the OpenTok.startBroadcast() method.public java.lang.String getId()
public java.lang.String getSessionId()
public int getProjectId()
public long getCreatedAt()
public long getUpdatedAt()
public int getMaxDuration()
public int getMaxBitrate()
public java.lang.String getResolution()
public java.lang.String getStatus()
public java.lang.String getMultiBroadcastTag()
public java.lang.String getHls()
public java.lang.String getHlsStatus()
public java.util.List<Rtmp> getRtmpList()
public boolean hasAudio()
true) or not (false).public boolean hasVideo()
true) or not (false).public Broadcast.StreamMode getStreamMode()
StreamMode.AUTO or StreamMode.MANUAL.public java.lang.String toString()
toString in class java.lang.Object