Class PublisherConfiguration.Builder
- Enclosing class:
- PublisherConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbitRate(int bitrate) Deprecated.Sets the stream's bitrate.build()Deprecated.defaultLayout(int layoutStyle) Deprecated.Sets the default layout.Deprecated.Adds extra information.frameRate(int framerate) Deprecated.Sets the stream's frame rate.injectStream(String url, int width, int height) Deprecated.Sets the inject stream.owner(boolean isRoomOwner) Deprecated.Sets the RTMP stream owner.publishUrl(String url) Deprecated.Sets the publishing URL.rawStreamUrl(String url) Deprecated.Sets the raw stream URL.size(int width, int height) Deprecated.Sets the stream resolution.streamLifeCycle(int lifecycle) Deprecated.CDN push stream life cycle
-
Constructor Details
-
Builder
public Builder()Deprecated.
-
-
Method Details
-
owner
Deprecated.Sets the RTMP stream owner.In the Builder Class, this method sets whether the current host is the RTMP stream owner.
- Parameters:
isRoomOwner-- True: Yes (default), push-stream configuration.
- False: No push-stream configuration.
- Returns:
- 0: Success.
- <0: Failure.
-
streamLifeCycle
Deprecated.CDN push stream life cycleYou can choose:
- Bind to channel (STREAM_LIFE_CYCLE_BIND2CHANNEL) or
- Bind to room owner (STREAM_LIFE_CYCLE_BIND2OWNER).
-
size
Deprecated.Sets the stream resolution.In the Builder Class, this method sets the resolution of the output data stream set for CDN Live.
- Parameters:
width- Width of the output data stream set for CDN Live. 360 is the default value.height- Height of the output data stream set for CDN Live. 640 is the default value.- Returns:
- 0: Success.
- <0: Failure.
-
frameRate
Deprecated.Sets the stream's frame rate.In the Builder class, this method sets the frame rate of the output data stream set for CDN Live.
- Parameters:
framerate- Frame rate of the output data stream set for CDN Live. 15 fps is the default value.- Returns:
- 0: Success.
- <0: Failure.
-
bitRate
Deprecated.Sets the stream's bitrate.In the Builder class, this method sets the bitrate of the output data stream set for CDN Live.
- Parameters:
bitrate- Bitrate of the output data stream set for CDN Live. 500 kbit/s is the default value.- Returns:
- 0: Success.
- <0: Failure.
-
defaultLayout
Deprecated.Sets the default layout.In the Builder class, this method sets the default layout if you do not use flexible adjustment.
- Parameters:
layoutStyle-- 0: Tile horizontally
- 1: Layered windows
- 2: Tile vertically
- Returns:
- 0: Success.
- <0: Failure.
-
publishUrl
Deprecated.Sets the publishing URL.In the Builder class, this method configures the push-stream address for the picture-in-picture layouts.
- Parameters:
url- Configures the push-stream address for the picture-in-picture layouts. The default value is NULL.- Returns:
- 0: Success.
- <0: Failure.
-
rawStreamUrl
Deprecated.Sets the raw stream URL.In the Builder class, this method sets the push-stream address of the original stream which does not require picture-blending.
- Parameters:
url- Push-stream address of the original stream. The default value is NULL.- Returns:
- 0: Success.
- <0: Failure.
-
injectStream
Deprecated.Sets the inject stream.In the Builder class, this method injects a stream to the current channel.
- Parameters:
url- URL address of the stream to be injected to the channel.width- Width of the stream. N/A, set as 0.height- Height of the stream. N/A, set as 0.- Returns:
- 0: Success.
- <0: Failure.
-
extraInfo
Deprecated.Adds extra information.- Parameters:
optionalInfo- Reserved Field. The default value is NULL.- Returns:
- 0: Success.
- <0: Failure.
-
build
Deprecated.
-
If you want to configure the push-stream, Agora recommends using the
setLiveTranscodingmethod.