public class TXLivePusherImpl
extends java.lang.Object
implements com.tencent.liteav.TXICustomPreprocessListenner, com.tencent.liteav.TXCCaptureAndEnc.TXICaptureAndEncDelegate
Constructor and Description |
---|
TXLivePusherImpl(Context context) |
Modifier and Type | Method and Description |
---|---|
int |
getBGMDuration(java.lang.String path) |
TXLivePushConfig |
getConfig() |
int |
getMaxZoom() |
boolean |
isPushing() |
void |
onBackgroudPushStop() |
void |
onLogRecord(java.lang.String str) |
void |
onRecordEncData(byte[] data,
long timestamp,
int sampleRate,
int channels,
int bits) |
void |
onRecordError(int errNo,
java.lang.String errInfo) |
void |
onRecordPcmData(byte[] data,
long timestamp,
int sampleRate,
int channels,
int bits) |
void |
onRecordRawPcmData(byte[] data,
long timestamp,
int sampleRate,
int channels,
int bits,
boolean withBgm) |
boolean |
pauseBGM() |
void |
pausePusher() |
boolean |
playBGM(java.lang.String path) |
boolean |
resumeBGM() |
void |
resumePusher() |
void |
sendCustomPCMData(byte[] pcmBuffer) |
int |
sendCustomVideoData(byte[] buffer,
int bufferType,
int w,
int h) |
int |
sendCustomVideoTexture(int textureID,
int w,
int h) |
void |
sendMessage(byte[] msg)
Deprecated.
|
boolean |
sendMessageEx(byte[] msg) |
void |
setAudioProcessListener(TXLivePusher.AudioCustomProcessListener listener) |
boolean |
setBeautyFilter(int style,
int beautyLevel,
int whiteningLevel,
int ruddyLevel) |
void |
setBGMNofify(TXLivePusher.OnBGMNotify notify) |
void |
setBGMPitch(float pitch) |
boolean |
setBGMPosition(int position) |
boolean |
setBGMVolume(float x) |
void |
setChinLevel(int chinLevel) |
void |
setConfig(TXLivePushConfig config) |
void |
setExposureCompensation(float value) |
void |
setEyeScaleLevel(int eyeScaleLevel) |
void |
setFaceShortLevel(int faceShortlevel) |
void |
setFaceSlimLevel(int faceScaleLevel) |
void |
setFaceVLevel(int faceVLevel) |
void |
setFilter(Bitmap bmp) |
void |
setFocusPosition(float x,
float y) |
boolean |
setGreenScreenFile(java.lang.String file) |
boolean |
setMicVolume(float x) |
boolean |
setMirror(boolean enable) |
void |
setMotionMute(boolean motionMute) |
void |
setMotionTmpl(java.lang.String motionPath) |
void |
setMute(boolean mute) |
void |
setNoseSlimLevel(int noseSlimLevel) |
void |
setPushListener(ITXLivePushListener listener) |
void |
setRenderRotation(int rotation) |
void |
setReverb(int reverbType) |
void |
setSpecialRatio(float ratio) |
void |
setSurface(Surface surface) |
void |
setSurfaceSize(int width,
int height) |
void |
setVideoProcessListener(TXLivePusher.VideoCustomProcessListener listener) |
void |
setVideoQuality(int quality,
boolean adjustBitrate,
boolean adjustResolution) |
void |
setVideoRecordListener(TXRecordCommon.ITXVideoRecordListener listener) |
void |
setVoiceChangerType(int voiceChangerType) |
boolean |
setZoom(int value) |
void |
snapshot(TXLivePusher.ITXSnapshotListener listener) |
void |
startCameraPreview(com.tencent.rtmp.ui.TXCloudVideoView view) |
int |
startPusher(java.lang.String rtmpURL) |
int |
startRecord(java.lang.String videoFilePath) |
void |
startScreenCapture() |
boolean |
stopBGM() |
void |
stopCameraPreview(boolean isNeedClearLastImg) |
void |
stopPusher()
2.4 停止 RTMP 推流
|
void |
stopRecord() |
void |
stopScreenCapture() |
void |
switchCamera() |
boolean |
turnOnFlashLight(boolean enable) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public int getBGMDuration(java.lang.String path)
public TXLivePushConfig getConfig()
public int getMaxZoom()
public boolean isPushing()
public void onBackgroudPushStop()
onBackgroudPushStop
in interface com.tencent.liteav.TXCCaptureAndEnc.TXICaptureAndEncDelegate
public void onLogRecord(java.lang.String str)
public void onRecordEncData(byte[] data, long timestamp, int sampleRate, int channels, int bits)
public void onRecordError(int errNo, java.lang.String errInfo)
public void onRecordPcmData(byte[] data, long timestamp, int sampleRate, int channels, int bits)
public void onRecordRawPcmData(byte[] data, long timestamp, int sampleRate, int channels, int bits, boolean withBgm)
public boolean pauseBGM()
public void pausePusher()
public boolean playBGM(java.lang.String path)
public boolean resumeBGM()
public void resumePusher()
public void sendCustomPCMData(byte[] pcmBuffer)
public int sendCustomVideoData(byte[] buffer, int bufferType, int w, int h)
public int sendCustomVideoTexture(int textureID, int w, int h)
@Deprecated public void sendMessage(byte[] msg)
public boolean sendMessageEx(byte[] msg)
public void setAudioProcessListener(TXLivePusher.AudioCustomProcessListener listener)
public boolean setBeautyFilter(int style, int beautyLevel, int whiteningLevel, int ruddyLevel)
public void setBGMNofify(TXLivePusher.OnBGMNotify notify)
public void setBGMPitch(float pitch)
public boolean setBGMPosition(int position)
public boolean setBGMVolume(float x)
public void setChinLevel(int chinLevel)
public void setConfig(TXLivePushConfig config)
public void setExposureCompensation(float value)
public void setEyeScaleLevel(int eyeScaleLevel)
public void setFaceShortLevel(int faceShortlevel)
public void setFaceSlimLevel(int faceScaleLevel)
public void setFaceVLevel(int faceVLevel)
public void setFilter(Bitmap bmp)
public void setFocusPosition(float x, float y)
public boolean setGreenScreenFile(java.lang.String file)
public boolean setMicVolume(float x)
public boolean setMirror(boolean enable)
public void setMotionMute(boolean motionMute)
public void setMotionTmpl(java.lang.String motionPath)
public void setMute(boolean mute)
public void setNoseSlimLevel(int noseSlimLevel)
public void setPushListener(ITXLivePushListener listener)
public void setRenderRotation(int rotation)
public void setReverb(int reverbType)
public void setSpecialRatio(float ratio)
public void setSurface(Surface surface)
public void setSurfaceSize(int width, int height)
public void setVideoProcessListener(TXLivePusher.VideoCustomProcessListener listener)
public void setVideoQuality(int quality, boolean adjustBitrate, boolean adjustResolution)
public void setVideoRecordListener(TXRecordCommon.ITXVideoRecordListener listener)
public void setVoiceChangerType(int voiceChangerType)
public boolean setZoom(int value)
public void snapshot(TXLivePusher.ITXSnapshotListener listener)
public void startCameraPreview(com.tencent.rtmp.ui.TXCloudVideoView view)
public int startPusher(java.lang.String rtmpURL)
public int startRecord(java.lang.String videoFilePath)
public void startScreenCapture()
public boolean stopBGM()
public void stopCameraPreview(boolean isNeedClearLastImg)
public void stopPusher()
public void stopRecord()
public void stopScreenCapture()
public void switchCamera()
public boolean turnOnFlashLight(boolean enable)