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: : - RtmpProperties

Constructor Summary

Constructors

Constructor

Description

Builder()

Method Summary

All MethodsInstance MethodsConcrete Methods

Modifier and Type

Method

Description

RtmpProperties

build()

Builds the RtmpProperties object.

RtmpProperties.Builder

id(String id)

Call this method to set the ID of the RTMP stream (optional).

RtmpProperties.Builder

serverUrl(String serverUrl)

Call this method to set the RTMP server URL.

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.

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

Builder

public Builder()

Method Details

id

public RtmpProperties.Builder id(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(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.