public class RecordDialog
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static interface |
RecordDialog.DialogRecordCallback |
限定符和类型 | 字段和说明 |
---|---|
static int |
STATE_NOT_START |
static int |
STATE_RECORD_END |
static int |
STATE_RECORDING |
static int |
STOP_CANCEL |
static int |
STOP_ERROR |
static int |
STOP_SUCCESS |
构造器和说明 |
---|
RecordDialog(android.content.Context context) |
限定符和类型 | 方法和说明 |
---|---|
void |
closeDialog() |
android.app.Dialog |
getDialog() |
boolean |
isDialogShow() |
static void |
reportRecord(int op,
java.lang.String vid,
java.lang.String uid,
long time,
int kid,
int keep)
上报录屏相关埋点
|
void |
setCallback(RecordDialog.DialogRecordCallback callback) |
void |
setHostId(java.lang.String hostId) |
void |
setProgressTime(long minTime,
long maxTime) |
void |
setVideoId(java.lang.String vid) |
void |
showDialog() |
void |
stop(int type)
录制结束,重置一些dialog的状态,并关闭之
|
public static final int STATE_NOT_START
public static final int STATE_RECORDING
public static final int STATE_RECORD_END
public static final int STOP_SUCCESS
public static final int STOP_CANCEL
public static final int STOP_ERROR
public void setCallback(RecordDialog.DialogRecordCallback callback)
public void setVideoId(java.lang.String vid)
public void setHostId(java.lang.String hostId)
public void stop(int type)
type
- 录制结束的原因public void showDialog()
public void setProgressTime(long minTime, long maxTime)
public boolean isDialogShow()
public void closeDialog()
public android.app.Dialog getDialog()
public static void reportRecord(int op, java.lang.String vid, java.lang.String uid, long time, int kid, int keep)
op
- 操作
1.点击录制按钮
2.点击开始录制按钮
3.录制过程中取消/时间不够
4.录制成功
5.点击分享fb
6.点击分享twitter
7.点击分享ins
8.分享fb成功
9.点击分享FBMessenger
10.点击分享Whatsapp
11.点击分享Kikvid
- 视频IDuid
- 用户IDtime
- 录制时间,单位毫秒,只随操作3和4上报kid
- 区分主播还是观众,1-主播,2-观众keep
- 分享框消失时,是否保存了视频,1-保存,2-不保存