My IMP(低代码音视频工厂)SDK v1.5.0
IMP SDK API Reference Manual for Android Platforms
com.aliyun.roompaas.live.exposable.LivePusherService Interface Reference

Public Member Functions

void startPreview (Callback< View > callback)
 
void startLive (Callback< View > callback)
 
void startLive (BusinessOptions businessOptions, Callback< View > callback)
 
void setPreviewMode (@CanvasScale.Mode int mode)
 
void pauseLive ()
 
void resumeLive ()
 
void switchCamera ()
 
void setPreviewMirror (boolean mirror)
 
void setPushMirror (boolean mirror)
 
void setBeautyOn (boolean isBeautyOpen)
 
void updateBeautyOptions (AliLiveBeautyOptions beautyOptions)
 
void setMutePush (boolean mute)
 
void stopLive (Callback< Void > callback)
 
void stopLive (boolean destroyLive, Callback< Void > callback)
 
void restartLive ()
 

Detailed Description

直播推流服务

Author
puke
Version
2021/7/2

Member Function Documentation

◆ pauseLive()

void com.aliyun.roompaas.live.exposable.LivePusherService.pauseLive ( )

暂停直播

◆ restartLive()

void com.aliyun.roompaas.live.exposable.LivePusherService.restartLive ( )

重新开始直播推流,适用于断网后恢复推流

◆ resumeLive()

void com.aliyun.roompaas.live.exposable.LivePusherService.resumeLive ( )

恢复直播

◆ setBeautyOn()

void com.aliyun.roompaas.live.exposable.LivePusherService.setBeautyOn ( boolean  isBeautyOpen)

开启/关闭美颜

Parameters
isBeautyOpen是否开启美颜

◆ setMutePush()

void com.aliyun.roompaas.live.exposable.LivePusherService.setMutePush ( boolean  mute)

设置静音推流

Parameters
mute推流端设置静音

◆ setPreviewMirror()

void com.aliyun.roompaas.live.exposable.LivePusherService.setPreviewMirror ( boolean  mirror)

设置镜像预览

Parameters
mirror是否镜像处理

◆ setPreviewMode()

void com.aliyun.roompaas.live.exposable.LivePusherService.setPreviewMode ( @CanvasScale.Mode int  mode)

设置播放器/预览视图画面填充模式 CanvasScale.Mode

Parameters
mode想要设置的模式

◆ setPushMirror()

void com.aliyun.roompaas.live.exposable.LivePusherService.setPushMirror ( boolean  mirror)

设置推流镜像

Parameters
mirror是否镜像处理

◆ startLive() [1/2]

void com.aliyun.roompaas.live.exposable.LivePusherService.startLive ( BusinessOptions  businessOptions,
Callback< View >  callback 
)

开始直播

Parameters
businessOptions直播业务参数
callback回调函数

◆ startLive() [2/2]

void com.aliyun.roompaas.live.exposable.LivePusherService.startLive ( Callback< View >  callback)

开始直播

Parameters
callback回调函数

◆ startPreview()

void com.aliyun.roompaas.live.exposable.LivePusherService.startPreview ( Callback< View >  callback)

开始预览

Parameters
callback回调函数

◆ stopLive() [1/2]

void com.aliyun.roompaas.live.exposable.LivePusherService.stopLive ( boolean  destroyLive,
Callback< Void >  callback 
)

结束直播

Parameters
destroyLive是否销毁当前直播
callback回调函数

◆ stopLive() [2/2]

void com.aliyun.roompaas.live.exposable.LivePusherService.stopLive ( Callback< Void >  callback)

结束直播

Parameters
callback回调函数

◆ switchCamera()

void com.aliyun.roompaas.live.exposable.LivePusherService.switchCamera ( )

切换摄像头

◆ updateBeautyOptions()

void com.aliyun.roompaas.live.exposable.LivePusherService.updateBeautyOptions ( AliLiveBeautyOptions  beautyOptions)

设置美颜参数


The documentation for this interface was generated from the following file: