|
Agora Java API Reference for Android
|
Public Member Functions | |
| Builder | owner (boolean isRoomOwner) |
| Builder | streamLifeCycle (int lifecycle) |
| Builder | size (int width, int height) |
| Builder | frameRate (int framerate) |
| Builder | bitRate (int bitrate) |
| Builder | defaultLayout (int layoutStyle) |
| Builder | publishUrl (String url) |
| Builder | rawStreamUrl (String url) |
| Builder | injectStream (String url, int width, int height) |
| Builder | extraInfo (String optionalInfo) |
| PublisherConfiguration | build () |
Builder class.
If you want to configure the push-stream, Agora recommends using the {setLiveTranscoding} method.
| Builder io.agora.rtc2.PublisherConfiguration.Builder.owner | ( | boolean | isRoomOwner | ) |
Sets the RTMP stream owner.
In the Builder Class, this method sets whether the current host is the RTMP stream owner.
| isRoomOwner |
|
| Builder io.agora.rtc2.PublisherConfiguration.Builder.streamLifeCycle | ( | int | lifecycle | ) |
CDN push stream life cycle
You can choose:
| Builder io.agora.rtc2.PublisherConfiguration.Builder.size | ( | int | width, |
| int | height | ||
| ) |
Sets the stream resolution.
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. |
| Builder io.agora.rtc2.PublisherConfiguration.Builder.frameRate | ( | int | framerate | ) |
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.
| framerate | Frame rate of the output data stream set for CDN Live. 15 fps is the default value. |
| Builder io.agora.rtc2.PublisherConfiguration.Builder.bitRate | ( | int | bitrate | ) |
Sets the stream's 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. |
| Builder io.agora.rtc2.PublisherConfiguration.Builder.defaultLayout | ( | int | layoutStyle | ) |
Sets the default layout.
<p>In the Builder class, this method sets the default layout if you do not use flexible
adjustment.
@param layoutStyle <ul><li>0: Tile horizontally
1: Layered windows 2: Tile vertically
| Builder io.agora.rtc2.PublisherConfiguration.Builder.publishUrl | ( | String | url | ) |
Sets the publishing 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. |
| Builder io.agora.rtc2.PublisherConfiguration.Builder.rawStreamUrl | ( | String | url | ) |
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.
| url | Push-stream address of the original stream. The default value is NULL. |
| Builder io.agora.rtc2.PublisherConfiguration.Builder.injectStream | ( | String | url, |
| int | width, | ||
| int | height | ||
| ) |
Sets the inject stream.
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. |
| Builder io.agora.rtc2.PublisherConfiguration.Builder.extraInfo | ( | String | optionalInfo | ) |
Adds extra information.
| optionalInfo | Reserved Field. The default value is NULL. |
1.8.18