Package com.opentok

Class Broadcast

java.lang.Object
com.opentok.Broadcast

public class Broadcast
extends java.lang.Object
Represents a live streaming broadcast of an OpenTok session.
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  Broadcast.StreamMode
    Defines values used in the BroadcastProperties.Builder.streamMode(com.opentok.Broadcast.StreamMode) method and returned by the getStreamMode() method.
  • Method Summary

    Modifier and Type Method 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 getId()
    The broadcast ID.
    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.
    static Broadcast makeBroadcast()
    Do not call the makeBroadcast() method.
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • makeBroadcast

      public static Broadcast makeBroadcast()
      Do not call the makeBroadcast() method. To start a live streaming broadcast, call the OpenTok.startBroadcast() method.
    • getId

      public java.lang.String getId()
      The broadcast ID.
    • getSessionId

      public java.lang.String getSessionId()
      The session ID of the OpenTok session associated with this broadcast.
    • getProjectId

      public int getProjectId()
      The OpenTok API key associated with the broadcast.
    • getCreatedAt

      public long getCreatedAt()
      The time at which the broadcast was started, in milliseconds since the Unix epoch.
    • getUpdatedAt

      public long getUpdatedAt()
      The time at which the broadcast was updated, in milliseconds since the Unix epoch.
    • getResolution

      public java.lang.String getResolution()
      The broadcast resolution.
    • getStatus

      public java.lang.String getStatus()
      The broadcast status, either "started" or "stopped".
    • getHls

      public java.lang.String getHls()
      The HLS URL (if there is one) of the broadcast.
    • getRtmpList

      public java.util.List<Rtmp> getRtmpList()
      A list of RTMP URLs (if there are any) of the broadcast.
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • getStreamMode

      public Broadcast.StreamMode getStreamMode()
      The stream mode to used for selecting streams to be included in this archive: StreamMode.AUTO or StreamMode.MANUAL.