Package com.opentok

Class RtmpProperties.Builder

  • Enclosing class:
    RtmpProperties

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

      Constructors 
      Constructor Description
      Builder()  
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public RtmpProperties.Builder id​(java.lang.String 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​(java.lang.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​(java.lang.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.