Package com.opentok
Class RtmpProperties.Builder
java.lang.Object
com.opentok.RtmpProperties.Builder
- Enclosing class:
- RtmpProperties
Use this class to create a RtmpProperties object.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the RtmpProperties object.Call this method to set the ID of the RTMP stream (optional).Call this method to set the RTMP server URL.streamName
(String streamName) Call this method to set the stream name, such as the YouTube Live stream name or the Facebook stream key.
-
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 theBroadcast
object.- Parameters:
id
- The stream ID- Returns:
- The RtmpProperties.Builder object with the ID setting.
-
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
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
Builds the RtmpProperties object.- Returns:
- The RtmpProperties object.
-