If you want to configure the push-stream, Agora recommends using the setLiveTranscoding
method.
public static class PublisherConfiguration.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
PublisherConfiguration.Builder |
bitRate(int bitrate)
Deprecated.
Sets the stream's bitrate.
|
PublisherConfiguration |
build()
Deprecated.
|
PublisherConfiguration.Builder |
defaultLayout(int layoutStyle)
Deprecated.
Sets the default layout.
|
PublisherConfiguration.Builder |
extraInfo(java.lang.String optionalInfo)
Deprecated.
Adds extra information.
|
PublisherConfiguration.Builder |
frameRate(int framerate)
Deprecated.
Sets the stream's frame rate.
|
PublisherConfiguration.Builder |
injectStream(java.lang.String url,
int width,
int height)
Deprecated.
Sets the inject stream.
|
PublisherConfiguration.Builder |
owner(boolean isRoomOwner)
Deprecated.
Sets the RTMP stream owner.
|
PublisherConfiguration.Builder |
publishUrl(java.lang.String url)
Deprecated.
Sets the publishing URL.
|
PublisherConfiguration.Builder |
rawStreamUrl(java.lang.String url)
Deprecated.
Sets the raw stream URL.
|
PublisherConfiguration.Builder |
size(int width,
int height)
Deprecated.
Sets the stream resolution.
|
PublisherConfiguration.Builder |
streamLifeCycle(int lifecycle)
Deprecated.
CDN push stream life cycle
|
public PublisherConfiguration.Builder owner(boolean isRoomOwner)
In the Builder Class, this method sets whether the current host is the RTMP stream owner.
isRoomOwner
- public PublisherConfiguration.Builder streamLifeCycle(int lifecycle)
You can choose:
public PublisherConfiguration.Builder size(int width, int height)
In the Builder Class, this method sets the resolution of the output data stream set for CDN Live.
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.public PublisherConfiguration.Builder frameRate(int framerate)
In the Builder class, this method sets the frame rate of the output data stream set for CDN Live.
framerate
- Frame rate of the output data stream set for CDN Live. 15 fps is the default value.public PublisherConfiguration.Builder bitRate(int bitrate)
In the Builder class, this method sets the bitrate of the output data stream set for CDN Live.
bitrate
- Bitrate of the output data stream set for CDN Live. 500 kbit/s is the default value.public PublisherConfiguration.Builder defaultLayout(int layoutStyle)
In the Builder class, this method sets the default layout if you do not use flexible adjustment.
layoutStyle
- public PublisherConfiguration.Builder publishUrl(java.lang.String url)
In the Builder class, this method configures the push-stream address for the picture-in-picture layouts.
url
- Configures the push-stream address for the picture-in-picture layouts. The default value is NULL.public PublisherConfiguration.Builder rawStreamUrl(java.lang.String url)
In the Builder class, this method sets the push-stream address of the original stream which does not require picture-blending.
url
- Push-stream address of the original stream. The default value is NULL.public PublisherConfiguration.Builder injectStream(java.lang.String url, int width, int height)
In the Builder class, this method injects a stream to the current channel.
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.public PublisherConfiguration.Builder extraInfo(java.lang.String optionalInfo)
optionalInfo
- Reserved Field. The default value is NULL.public PublisherConfiguration build()