Package com.opentok

Class RtmpProperties.Builder

java.lang.Object
com.opentok.RtmpProperties.Builder
Enclosing class:
RtmpProperties

public static class RtmpProperties.Builder extends Object
Use this class to create a RtmpProperties object.
See Also:
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • id

      Call this method to set the ID of the RTMP stream (optional). If you specify an ID, it will be included in the Broadcast object.
      Parameters:
      id - The stream ID
      Returns:
      The RtmpProperties.Builder object with the ID setting.
    • serverUrl

      public RtmpProperties.Builder serverUrl(String serverUrl)
      Call this method to set the RTMP server URL. Note that OpenTok live streaming supports RTMP and RTMPS.
      Parameters:
      serverUrl - The RTMP server URL
      Returns:
      The RtmpProperties.Builder object with the the RTMP server URL setting.
    • streamName

      public RtmpProperties.Builder streamName(String streamName)
      Call this method to set the stream name, such as the YouTube Live stream name or the Facebook stream key.
      Parameters:
      streamName - The stream name.
      Returns:
      The RtmpProperties.Builder object with the stream name setting.
    • build

      public RtmpProperties build()
      Builds the RtmpProperties object.
      Returns:
      The RtmpProperties object.