Agora Java API Reference for Android
|
Public Member Functions | |
long | getNativeHandle () |
void | setAutoPlay (boolean autoPlay) throws RteException |
boolean | getAutoPlay () throws RteException |
void | setPlaybackSpeed (int speed) throws RteException |
int | getPlaybackSpeed () throws RteException |
void | setPlayoutAudioTrackIdx (int idx) throws RteException |
int | getPlayoutAudioTrackIdx () throws RteException |
void | setPublishAudioTrackIdx (int idx) throws RteException |
int | getPublishAudioTrackIdx () throws RteException |
void | setAudioTrackIdx (int idx) throws RteException |
int | getAudioTrackIdx () throws RteException |
void | setSubtitleTrackIdx (int idx) throws RteException |
int | getSubtitleTrackIdx () throws RteException |
void | setExternalSubtitleTrackIdx (int idx) throws RteException |
int | getExternalSubtitleTrackIdx () throws RteException |
void | setAudioPitch (int audioPitch) throws RteException |
int | getAudioPitch () throws RteException |
void | setPlayoutVolume (int volume) throws RteException |
int | getPlayoutVolume () throws RteException |
void | setAudioPlaybackDelay (int delay) throws RteException |
int | getAudioPlaybackDelay () throws RteException |
void | setAudioDualMonoMode (int mode) throws RteException |
int | getAudioDualMonoMode () throws RteException |
void | setPublishVolume (int volume) throws RteException |
int | getPublishVolume () throws RteException |
void | setLoopCount (int count) throws RteException |
int | getLoopCount () throws RteException |
void | setJsonParameter (String jsonParameter) throws RteException |
String | getJsonParameter () throws RteException |
void | setAbrSubscriptionLayer (Constants.AbrSubscriptionLayer subscriptionLayer) throws RteException |
Constants.AbrSubscriptionLayer | getAbrSubscriptionLayer () throws RteException |
void | setAbrFallbackLayer (Constants.AbrFallbackLayer fallbackLayer) throws RteException |
Constants.AbrFallbackLayer | getAbrFallbackLayer () throws RteException |
Protected Member Functions | |
void | finalize () |
Player configuration class
void io.agora.rte.PlayerConfig.setAutoPlay | ( | boolean | autoPlay | ) | throws RteException |
Whether to automatically play after a successful call to Player.openWithUrl. If not set, the default value is true.
autoPlay |
|
RteException | RteException.errorCode() may return the following ErrorCode |
boolean io.agora.rte.PlayerConfig.getAutoPlay | ( | ) | throws RteException |
Get the auto-play setting
RteException | RteException.errorCode() may return the following ErrorCode |
void io.agora.rte.PlayerConfig.setJsonParameter | ( | String | jsonParameter | ) | throws RteException |
Set player private parameters. This parameter setting can be done according to actual needs, referring to the suggestions of Agora SA.
jsonParameter | JSON formatted string |
RteException | RteException.errorCode() may return the following ErrorCode:
|
String io.agora.rte.PlayerConfig.getJsonParameter | ( | ) | throws RteException |
Get the currently configured private parameters of the player.
RteException | RteException.errorCode() may return the following ErrorCode: |
void io.agora.rte.PlayerConfig.setAbrSubscriptionLayer | ( | Constants.AbrSubscriptionLayer | subscriptionLayer | ) | throws RteException |
Set the ABR subscription layer. If ABR is not enabled, the audience can only switch the high and low video stream in the origin channel. After enabling it, the audience can switch any layer in the abr channel.
subscriptionLayer | The layer to subscribe to. Refer to the Constants.AbrSubscriptionLayer enumeration values for details. |
RteException | RteException.errorCode() may return the following ErrorCode:
|
Constants.AbrSubscriptionLayer io.agora.rte.PlayerConfig.getAbrSubscriptionLayer | ( | ) | throws RteException |
Get the ABR subscription layer. If ABR is not enabled, after calling this method, the audience can only set Constans.AbrFallbackLayer.DISABLED ~ Constans.AbrFallbackLayer.AUDIO_ONLY in the original channel. After enabling it, the audience can switch all values of AbrFallbackLayer in the abr channel.
RteException | RteException.errorCode() may return the following ErrorCode: |
void io.agora.rte.PlayerConfig.setAbrFallbackLayer | ( | Constants.AbrFallbackLayer | fallbackLayer | ) | throws RteException |
Set the ABR fallback layer option.
fallbackLayer | The ABR fallback option to set. Refer to the Constants.AbrFallbackLayer enumeration values for details. |
RteException | RteException.errorCode() may return the following ErrorCode:
|
Constants.AbrFallbackLayer io.agora.rte.PlayerConfig.getAbrFallbackLayer | ( | ) | throws RteException |
Get the ABR fallback layer option.
RteException | RteException.errorCode() may return the following ErrorCode: |