Package com.opentok
Class RtmpProperties.Builder
- java.lang.Object
-
- com.opentok.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()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RtmpProperties
build()
Builds the RtmpProperties object.RtmpProperties.Builder
id(java.lang.String id)
Call this method to set the ID of the RTMP stream (optional).RtmpProperties.Builder
serverUrl(java.lang.String serverUrl)
Call this method to set the RTMP server URL.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.
-
-
-
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 theBroadcast
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.
-
-