Skip to content

Commit

Permalink
完善代码
Browse files Browse the repository at this point in the history
  • Loading branch information
xuexiangjys committed Jun 20, 2018
1 parent fe500ad commit 260d16e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 3 additions & 3 deletions xvideo-demo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ dependencies {
implementation 'com.github.xuexiangjys.XUtil:xutil-core:1.1.3'
implementation 'com.github.xuexiangjys.XUtil:xutil-sub:1.1.3'
//XPage
implementation 'com.github.xuexiangjys.XPage:xpage-lib:2.2.1'
annotationProcessor 'com.github.xuexiangjys.XPage:xpage-compiler:2.2.1'
implementation 'com.github.xuexiangjys.XPage:xpage-lib:2.2.2'
annotationProcessor 'com.github.xuexiangjys.XPage:xpage-compiler:2.2.2'
implementation 'com.github.xuexiangjys.XAOP:xaop-runtime:1.0.1'
//butterknife的sdk
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
implementation project(':xvideo-lib')

// implementation 'com.github.xuexiangjys:XVideo:1.0.1'
implementation 'com.github.xuexiangjys:NiceVieoPlayer:3.0.1'
implementation 'com.github.xuexiangjys:NiceVieoPlayer:3.0.2'
implementation deps.glide
}
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,7 @@ public void onBackPressed() {
@Override
public void onClick(DialogInterface dialog,
int which) {
mMediaObject.delete();
onCancel();
cancelRecord();
}

})
Expand All @@ -416,6 +415,13 @@ public void onClick(DialogInterface dialog,
return;
}

cancelRecord();
}

/**
* 取消视频录制
*/
protected void cancelRecord() {
if (mMediaObject != null) {
mMediaObject.delete();
}
Expand Down

0 comments on commit 260d16e

Please sign in to comment.