Class Broadcast

All Implemented Interfaces:
Jsonable

public class Broadcast extends StreamComposition
Represents properties of a live-streaming broadcast.
  • Constructor Details

  • 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 the StreamComposition.getCreatedAtMillis() timestamp.
      Returns:
      The update time in milliseconds since the Unix epoch.
    • getUpdatedAt

      For this start method, this timestamp matches the StreamComposition.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

      public Hls getHlsSettings()
      Returns:
      Further details on the HLS broadcast stream, or null if not applicable.
    • fromJson

      public static Broadcast fromJson(String json)
      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

      public static Broadcast.Builder builder(String sessionId)
      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.