public class VideoPusherJNI
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private long |
mNativeHandler |
private VideoPusher |
mVideoPusher |
private VideoPusher.VideoSourceListener |
mVideoPusherDataListener |
private VideoPusher.VideoSourceTextureListener |
mVideoPusherTextureListener |
Constructor and Description |
---|
VideoPusherJNI(long nativeHandler) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
int |
getCurrentExposureCompensation() |
int |
getCurrentZoom() |
int |
getMaxExposure() |
int |
getMaxZoom() |
int |
getMinExposure() |
static java.lang.String |
getSupportedFormats() |
static java.lang.String |
getSupportedResolutions(int source) |
void |
getTransformMatrix(float[] matrix) |
long |
getVideoHandler() |
void |
init(int source,
int width,
int height,
int fps,
int rotation,
int customRotation,
boolean surfaceMode,
boolean focusBySensor,
android.content.Context context) |
boolean |
isCapturing() |
boolean |
isSupportAutoFocus() |
boolean |
isSupportFlash() |
private int |
onData(byte[] frame,
long timestamp,
int cameraId,
int orientation,
int width,
int height,
int format) |
private int |
onStarted() |
private int |
onStopped() |
private int |
onTexture(long timestamp,
int cameraId,
int orientation,
int width,
int height,
int format) |
void |
pause(boolean useEmptyData) |
int |
resume() |
void |
setAutoFocus(boolean auto,
float x,
float y) |
void |
setExposureCompensation(int exposure) |
void |
setOrientation(int orientation) |
void |
setTorch(boolean on) |
void |
setZoom(int zoom) |
int |
start(int surfaceId) |
void |
stop() |
void |
switchCamera() |
int |
updateTexImage() |
private long mNativeHandler
private VideoPusher mVideoPusher
private VideoPusher.VideoSourceListener mVideoPusherDataListener
private VideoPusher.VideoSourceTextureListener mVideoPusherTextureListener
public long getVideoHandler()
public void init(int source, int width, int height, int fps, int rotation, int customRotation, boolean surfaceMode, boolean focusBySensor, android.content.Context context)
public int start(int surfaceId)
public void pause(boolean useEmptyData)
public int resume()
public void stop()
public void destroy()
public void switchCamera()
public void setOrientation(int orientation)
public void setAutoFocus(boolean auto, float x, float y)
public void setZoom(int zoom)
public int getMaxZoom()
public int getCurrentZoom()
public void setExposureCompensation(int exposure)
public int getMinExposure()
public int getMaxExposure()
public int getCurrentExposureCompensation()
public void setTorch(boolean on)
public boolean isSupportAutoFocus()
public boolean isSupportFlash()
public int updateTexImage()
public void getTransformMatrix(float[] matrix)
public static java.lang.String getSupportedResolutions(int source)
public static java.lang.String getSupportedFormats()
public boolean isCapturing()
private int onStarted()
private int onStopped()
private int onData(byte[] frame, long timestamp, int cameraId, int orientation, int width, int height, int format)
private int onTexture(long timestamp, int cameraId, int orientation, int width, int height, int format)