public class ScreenPusherJNI
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private android.content.Context |
mContext |
private long |
mNativeHandler |
private int |
mRotation |
private ScreenPusher |
mScreenPusher |
private ScreenPusher.VideoSourceTextureListener |
mVideoPusherTextureListener |
Constructor and Description |
---|
ScreenPusherJNI(long nativeHandler) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
long |
getScreenHandler() |
void |
getTransformMatrix(float[] matrix) |
void |
init(int source,
int width,
int height,
int fps,
int rotation,
android.content.Intent mediaProjectionPermissionResultData,
android.content.Context applicationContext) |
boolean |
isCapturing() |
private int |
onTexture(long timestamp,
int width,
int height,
int rotation,
int format) |
int |
start(int surfaceId) |
void |
stop() |
int |
updateTexImage() |
private long mNativeHandler
private ScreenPusher mScreenPusher
private int mRotation
private android.content.Context mContext
private ScreenPusher.VideoSourceTextureListener mVideoPusherTextureListener
public long getScreenHandler()
public void init(int source, int width, int height, int fps, int rotation, android.content.Intent mediaProjectionPermissionResultData, android.content.Context applicationContext)
public int start(int surfaceId)
public void stop()
public void destroy()
public int updateTexImage()
public void getTransformMatrix(float[] matrix)
public boolean isCapturing()
private int onTexture(long timestamp, int width, int height, int rotation, int format)