LiteAVSDK
腾讯云音视频 SDK ,服务于数万家企业客户的高可用组件,致力于最大限度地节省您的研发成本。
TXLivePusherImpl

Public 成员函数

 TXLivePusherImpl (Context context)
 
void setConfig (TXLivePushConfig config)
 
TXLivePushConfig getConfig ()
 
void setPushListener (ITXLivePushListener listener)
 
void startCameraPreview (TXCloudVideoView view)
 
void stopCameraPreview (boolean isNeedClearLastImg)
 
int startPusher (String rtmpURL)
 
void stopPusher ()
 
void pausePusher ()
 
void resumePusher ()
 
boolean isPushing ()
 
void setSurface (Surface surface)
 
void setSurfaceSize (int width, int height)
 
void setFocusPosition (float x, float y)
 
void startScreenCapture ()
 
void stopScreenCapture ()
 
void setVideoQuality (int quality, boolean adjustBitrate, boolean adjustResolution)
 
void switchCamera ()
 
boolean setMirror (boolean enable)
 
void setRenderRotation (int rotation)
 
boolean turnOnFlashLight (boolean enable)
 
int getMaxZoom ()
 
boolean setZoom (int value)
 
void setExposureCompensation (float value)
 
boolean setBeautyFilter (int style, int beautyLevel, int whiteningLevel, int ruddyLevel)
 
TXBeautyManager getBeautyManager ()
 
void setMute (boolean mute)
 
void setBGMNofify (TXLivePusher.OnBGMNotify notify)
 
boolean playBGM (String path)
 
boolean stopBGM ()
 
void stopAllBGM ()
 
boolean pauseBGM ()
 
boolean resumeBGM ()
 
int getBGMDuration (String path)
 
boolean setBGMVolume (float x)
 
boolean setMicVolume (float x)
 
void setBGMPitch (float pitch)
 
boolean setBGMPosition (int position)
 
void setReverb (int reverbType)
 
void setVoiceChangerType (int voiceChangerType)
 
void setAudioVolumeEvaluationListener (TXLivePusher.ITXAudioVolumeEvaluationListener listener)
 
void enableAudioVolumeEvaluation (int intervalMs)
 
void setVideoRecordListener (TXRecordCommon.ITXVideoRecordListener listener)
 
int startRecord (final String videoFilePath)
 
void stopRecord ()
 
void snapshot (final TXLivePusher.ITXSnapshotListener listener)
 
int sendCustomVideoTexture (int textureID, int w, int h)
 
int sendCustomVideoData (byte[] buffer, int bufferType, int w, int h)
 
void sendCustomPCMData (byte[] pcmBuffer)
 
void setVideoProcessListener (TXLivePusher.VideoCustomProcessListener listener)
 
void setAudioProcessListener (TXLivePusher.AudioCustomProcessListener listener)
 
boolean sendMessageEx (byte[] msg)
 
void sendMessage (byte[] msg)
 
void onLogRecord (String str)
 
void callExperimentalAPI (String jsonStr)
 
void onNotifyEvent (final int event, final Bundle param)
 
int onGetEncoderRealBitrate ()
 
int onGetQueueInputSize ()
 
int onGetQueueOutputSize ()
 
int onGetVideoQueueMaxCount ()
 
int onGetVideoQueueCurrentCount ()
 
int onGetVideoDropCount ()
 
int onGetBandwidthEst ()
 
void onEncoderParamsChanged (int bitrate, int width, int height)
 
void onEnableDropStatusChanged (boolean enableDrop)
 
void onEncVideo (TXSNALPacket nal)
 
void onRecordRawPcmData (byte[] data, long timestamp, int sampleRate, int channels, int bits, boolean withBgm)
 
void onRecordPcmData (byte[] data, long timestamp, int sampleRate, int channels, int bits)
 
void onRecordEncData (byte[] data, long timestamp, int sampleRate, int channels, int bits)
 
void onRecordError (int errNo, String errInfo)
 
void onEncVideoFormat (MediaFormat format)
 
void onBackgroudPushStop ()
 

构造及析构函数说明

◆ TXLivePusherImpl()

TXLivePusherImpl ( Context  context)
inline

成员函数说明

◆ apiOnlineLog()

void apiOnlineLog ( String  msg)
inlineprotected

◆ callExperimentalAPI()

void callExperimentalAPI ( String  jsonStr)
inline

◆ enableAudioVolumeEvaluation()

void enableAudioVolumeEvaluation ( int  intervalMs)
inline

◆ getBeautyManager()

TXBeautyManager getBeautyManager ( )
inline

◆ getBGMDuration()

int getBGMDuration ( String  path)
inline

◆ getConfig()

TXLivePushConfig getConfig ( )
inline

◆ getMaxZoom()

int getMaxZoom ( )
inline

◆ isPushing()

boolean isPushing ( )
inline

◆ onBackgroudPushStop()

void onBackgroudPushStop ( )
inline

◆ onEnableDropStatusChanged()

void onEnableDropStatusChanged ( boolean  enableDrop)
inline

◆ onEncoderParamsChanged()

void onEncoderParamsChanged ( int  bitrate,
int  width,
int  height 
)
inline

◆ onEncVideo()

void onEncVideo ( TXSNALPacket  nal)
inline

TXCCaptureAndEnc.TXICaptureAndEncDelegate

弃用:

◆ onEncVideoFormat()

void onEncVideoFormat ( MediaFormat  format)
inline

◆ onGetBandwidthEst()

int onGetBandwidthEst ( )
inline

◆ onGetEncoderRealBitrate()

int onGetEncoderRealBitrate ( )
inline

TXIQoSListener

弃用:

◆ onGetQueueInputSize()

int onGetQueueInputSize ( )
inline

◆ onGetQueueOutputSize()

int onGetQueueOutputSize ( )
inline

◆ onGetVideoDropCount()

int onGetVideoDropCount ( )
inline

◆ onGetVideoQueueCurrentCount()

int onGetVideoQueueCurrentCount ( )
inline

◆ onGetVideoQueueMaxCount()

int onGetVideoQueueMaxCount ( )
inline

◆ onLogRecord()

void onLogRecord ( String  str)
inline

◆ onNotifyEvent()

void onNotifyEvent ( final int  event,
final Bundle  param 
)
inline

◆ onRecordEncData()

void onRecordEncData ( byte[]  data,
long  timestamp,
int  sampleRate,
int  channels,
int  bits 
)
inline

◆ onRecordError()

void onRecordError ( int  errNo,
String  errInfo 
)
inline

◆ onRecordPcmData()

void onRecordPcmData ( byte[]  data,
long  timestamp,
int  sampleRate,
int  channels,
int  bits 
)
inline

◆ onRecordRawPcmData()

void onRecordRawPcmData ( byte[]  data,
long  timestamp,
int  sampleRate,
int  channels,
int  bits,
boolean  withBgm 
)
inline

◆ pauseBGM()

boolean pauseBGM ( )
inline

◆ pausePusher()

void pausePusher ( )
inline

◆ playBGM()

boolean playBGM ( String  path)
inline

◆ resumeBGM()

boolean resumeBGM ( )
inline

◆ resumePusher()

void resumePusher ( )
inline

◆ sendCustomPCMData()

void sendCustomPCMData ( byte[]  pcmBuffer)
inline

◆ sendCustomVideoData()

int sendCustomVideoData ( byte[]  buffer,
int  bufferType,
int  w,
int  h 
)
inline

◆ sendCustomVideoTexture()

int sendCustomVideoTexture ( int  textureID,
int  w,
int  h 
)
inline

◆ sendMessage()

void sendMessage ( byte[]  msg)
inline

◆ sendMessageEx()

boolean sendMessageEx ( byte[]  msg)
inline

◆ setAudioProcessListener()

void setAudioProcessListener ( TXLivePusher.AudioCustomProcessListener  listener)
inline

◆ setAudioVolumeEvaluationListener()

void setAudioVolumeEvaluationListener ( TXLivePusher.ITXAudioVolumeEvaluationListener  listener)
inline

◆ setBeautyFilter()

boolean setBeautyFilter ( int  style,
int  beautyLevel,
int  whiteningLevel,
int  ruddyLevel 
)
inline

◆ setBGMNofify()

void setBGMNofify ( TXLivePusher.OnBGMNotify  notify)
inline

◆ setBGMPitch()

void setBGMPitch ( float  pitch)
inline

◆ setBGMPosition()

boolean setBGMPosition ( int  position)
inline

◆ setBGMVolume()

boolean setBGMVolume ( float  x)
inline

◆ setConfig()

void setConfig ( TXLivePushConfig  config)
inline

◆ setExposureCompensation()

void setExposureCompensation ( float  value)
inline

◆ setFocusPosition()

void setFocusPosition ( float  x,
float  y 
)
inline

◆ setMicVolume()

boolean setMicVolume ( float  x)
inline

◆ setMirror()

boolean setMirror ( boolean  enable)
inline

◆ setMute()

void setMute ( boolean  mute)
inline

◆ setPushListener()

void setPushListener ( ITXLivePushListener  listener)
inline

◆ setRenderRotation()

void setRenderRotation ( int  rotation)
inline

◆ setReverb()

void setReverb ( int  reverbType)
inline

◆ setSurface()

void setSurface ( Surface  surface)
inline

◆ setSurfaceSize()

void setSurfaceSize ( int  width,
int  height 
)
inline

◆ setVideoProcessListener()

void setVideoProcessListener ( TXLivePusher.VideoCustomProcessListener  listener)
inline

◆ setVideoQuality()

void setVideoQuality ( int  quality,
boolean  adjustBitrate,
boolean  adjustResolution 
)
inline

◆ setVideoRecordListener()

void setVideoRecordListener ( TXRecordCommon.ITXVideoRecordListener  listener)
inline

◆ setVoiceChangerType()

void setVoiceChangerType ( int  voiceChangerType)
inline

◆ setZoom()

boolean setZoom ( int  value)
inline

◆ snapshot()

void snapshot ( final TXLivePusher.ITXSnapshotListener  listener)
inline

◆ startCameraPreview()

void startCameraPreview ( TXCloudVideoView  view)
inline

◆ startPusher()

int startPusher ( String  rtmpURL)
inline

◆ startRecord()

int startRecord ( final String  videoFilePath)
inline

◆ startScreenCapture()

void startScreenCapture ( )
inline

◆ stopAllBGM()

void stopAllBGM ( )
inline

◆ stopBGM()

boolean stopBGM ( )
inline

◆ stopCameraPreview()

void stopCameraPreview ( boolean  isNeedClearLastImg)
inline

◆ stopPusher()

void stopPusher ( )
inline

停止 RTMP 推流

◆ stopRecord()

void stopRecord ( )
inline

◆ stopScreenCapture()

void stopScreenCapture ( )
inline

◆ switchCamera()

void switchCamera ( )
inline

◆ turnOnFlashLight()

boolean turnOnFlashLight ( boolean  enable)
inline