Class Rtmp.Builder

java.lang.Object
com.vonage.client.video.Rtmp.Builder
Enclosing class:
Rtmp

public static class Rtmp.Builder extends Object
  • Method Details

    • id

      public Rtmp.Builder id(String id)
      (OPTIONAL) Sets a unique ID for the stream.
      Parameters:
      id - The unique identifier for this RTMP stream as a string.
      Returns:
      This builder.
    • streamName

      public Rtmp.Builder streamName(String streamName)
      (REQUIRED) Sets the stream name, such as the YouTube Live stream name or the Facebook stream key.
      Parameters:
      streamName - The name or key for this RTMP stream.
      Returns:
      This builder.
    • serverUrl

      public Rtmp.Builder serverUrl(String serverUrl)
      (REQUIRED) The RTMP server URL.
      Parameters:
      serverUrl - The server URL as a string.
      Returns:
      This builder.
    • build

      public Rtmp build()
      Constructs a Rtmp instance with this builder's properties.
      Returns:
      A new Rtmp object.