public class AlivcRTCEngineProxy
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
addPushImage(java.lang.String pushImagePath)
通讯SDK 推静态图片设计和API使用
|
void |
changeVideoResolution(AlivcResolutionEnum resolutionEnum) |
AliRtcEngine.AliRtcVideoCanvas |
createCanvas(android.content.Context context,
android.widget.FrameLayout viewContainer,
boolean isFullScreen) |
void |
destroy()
Destroy the instance of AliRTCEngine
|
AliRtcEngine |
getAliRTCEngine()
Get the instance of AliRTCEngine
|
static AlivcRTCEngineProxy |
getInstance()
单例模式
|
java.lang.String |
getPushUrl()
Get current push url
|
boolean |
isPushing()
Check whether current status is pushing
|
void |
leaveRTCRoom()
Leave to RTC Room
|
void |
pauseAudioPlaying(AlivcRTCUserPlayInfo playInfo) |
void |
pauseVideoPlaying(AlivcRTCUserPlayInfo playInfo) |
void |
publishToRTCRoom(java.lang.String url)
Publish to RTC Room
|
void |
removePushImage() |
void |
resumeAudioPlaying(AlivcRTCUserPlayInfo playInfo) |
void |
resumeVideoPlaying(AlivcRTCUserPlayInfo playInfo) |
int |
setLiveMixTranscodingConfig(AlivcLiveTranscodingConfig config) |
void |
setMinVideoBitrate(int minVideoBitrate) |
int |
setPlayoutVolume(int volume) |
void |
setPusherCallback(com.alivc.live.pusher.rtc.AlivcRTCPusherCallback pusherCallback)
Set callback of RTC Pusher
|
void |
setPusherMirror(boolean mirror) |
void |
setTargetVideoBitrate(int targetVideoBitrate) |
void |
setupEngineWithConfig(android.content.Context context,
AlivcLivePushConfig config)
Setup engine with AlivcLivePushConfig
|
int |
snapshot(AlivcSnapshotListener listener) |
int |
startPlayWithPlayInfo(AlivcRTCUserPlayInfo playInfo)
Start play rtc stream by play info
|
void |
stopPlayWithPlayInfo(AlivcRTCUserPlayInfo playInfo)
Stop play rtc stream by play info
|
public static AlivcRTCEngineProxy getInstance()
AlivcRTCEngineProxypublic AliRtcEngine getAliRTCEngine()
com.alivc.rtc.AliRtcEnginepublic void setupEngineWithConfig(android.content.Context context,
AlivcLivePushConfig config)
throws java.lang.IllegalArgumentException
context - android contextconfig - push configjava.lang.IllegalArgumentException - input params should be nonnull!AlivcLivePushConfigpublic void setPusherCallback(com.alivc.live.pusher.rtc.AlivcRTCPusherCallback pusherCallback)
pusherCallback - rtc pusher callbackpublic void destroy()
public void publishToRTCRoom(java.lang.String url)
throws java.lang.IllegalArgumentException,
java.lang.IllegalStateException
url - push urljava.lang.IllegalArgumentExceptionjava.lang.IllegalStateExceptionpublic void leaveRTCRoom()
public boolean isPushing()
public java.lang.String getPushUrl()
public AliRtcEngine.AliRtcVideoCanvas createCanvas(android.content.Context context,
android.widget.FrameLayout viewContainer,
boolean isFullScreen)
public int startPlayWithPlayInfo(AlivcRTCUserPlayInfo playInfo)
playInfo - 对端用户拉流信息public void stopPlayWithPlayInfo(AlivcRTCUserPlayInfo playInfo)
playInfo - play infopublic void pauseAudioPlaying(AlivcRTCUserPlayInfo playInfo)
public void resumeAudioPlaying(AlivcRTCUserPlayInfo playInfo)
public void pauseVideoPlaying(AlivcRTCUserPlayInfo playInfo)
public void resumeVideoPlaying(AlivcRTCUserPlayInfo playInfo)
public int setPlayoutVolume(int volume)
public void addPushImage(java.lang.String pushImagePath)
https://yuque.antfin-inc.com/docs/share/6a680648-d2a8-41c3-b1c6-f9e80cc23658
pushImagePath - 推静态图图片地址public void removePushImage()
public int setLiveMixTranscodingConfig(AlivcLiveTranscodingConfig config)
public void setPusherMirror(boolean mirror)
public void changeVideoResolution(AlivcResolutionEnum resolutionEnum)
public void setTargetVideoBitrate(int targetVideoBitrate)
public void setMinVideoBitrate(int minVideoBitrate)
public int snapshot(AlivcSnapshotListener listener)