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
Nested ClassesModifier and TypeClassDescriptionstatic classUsed 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Broadcast.BuilderInstantiates a Builder, used to construct this object.static BroadcastCreates 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, hasVideoMethods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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
nullif 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
nullif 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
nullif unset.
-
getMaxDuration
The maximum duration for the broadcast (if one was set).- Returns:
- The maximum duration (precision in seconds), or
nullif 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
nullif unknown.
-
getHlsSettings
- Returns:
- Further details on the HLS broadcast stream, or
nullif 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.
-