Package com.vonage.client.video
Class Broadcast
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.video.StreamComposition
com.vonage.client.video.Broadcast
- All Implemented Interfaces:
Jsonable
Represents properties of a live-streaming broadcast.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Used to construct a Broadcast object. -
Field Summary
Fields inherited from class com.vonage.client.video.StreamComposition
applicationId, createdAt, hasAudio, hasVideo, id, layout, maxBitrate, resolution, sessionId, streamMode, streams
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Broadcast.Builder
Instantiates a Builder, used to construct this object.static Broadcast
Creates an instance of this class from a JSON payload.Details on the HLS and RTMP broadcast streams.The maximum duration for the broadcast (if one was set).The maximum duration for the broadcast (if one was set), in seconds.The unique tag for simultaneous broadcasts (if one was set).The status of the broadcast at the time this object was created.For this start method, this timestamp matches theStreamComposition.getCreatedAt()
timestamp.For this start method, this timestamp matches theStreamComposition.getCreatedAtMillis()
timestamp.Methods inherited from class com.vonage.client.video.StreamComposition
getApplicationId, getCreatedAt, getCreatedAtMillis, getId, getLayout, getMaxBitrate, getResolution, getSessionId, getStreamMode, getStreams, hasAudio, hasVideo
Methods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.vonage.client.Jsonable
toJson, updateFromJson
-
Constructor Details
-
Broadcast
protected Broadcast() -
Broadcast
-
-
Method Details
-
getMultiBroadcastTag
The unique tag for simultaneous broadcasts (if one was set).- Returns:
- The multi broadcast tag, or
null
if unset.
-
getUpdatedAtMillis
For this start method, this timestamp matches theStreamComposition.getCreatedAtMillis()
timestamp.- Returns:
- The update time in milliseconds since the Unix epoch.
-
getUpdatedAt
For this start method, this timestamp matches theStreamComposition.getCreatedAt()
timestamp.- Returns:
- The updatedAt time as an Instant, or
null
if unset / not applicable.
-
getMaxDurationSeconds
The maximum duration for the broadcast (if one was set), in seconds.- Returns:
- The maximum duration of this broadcast in seconds as an integer, or
null
if unset.
-
getMaxDuration
The maximum duration for the broadcast (if one was set).- Returns:
- The maximum duration (precision in seconds), or
null
if unset.
-
getStatus
The status of the broadcast at the time this object was created.- Returns:
- Current status of the broadcast as an enum.
-
getBroadcastUrls
Details on the HLS and RTMP broadcast streams. For an HLS stream, the URL is provided.- Returns:
- The URLs for this broadcast, or
null
if unknown.
-
getHlsSettings
- Returns:
- Further details on the HLS broadcast stream, or
null
if not applicable.
-
fromJson
Creates an instance of this class from a JSON payload.- Parameters:
json
- The JSON string to parse.- Returns:
- An instance of this class with the fields populated, if present.
-
builder
Instantiates a Builder, used to construct this object. Note that you must specify at least one RTMP stream or HLS properties.- Parameters:
sessionId
- ID of the Vonage Video session to broadcast.- Returns:
- A new Broadcast.Builder.
-