|  | @@ -220,12 +220,7 @@ public class AccompanyActivity extends BaseMVPActivity<ActivityAccompanyBinding,
 | 
											
												
													
														|  |               */
 |  |               */
 | 
											
												
													
														|  |              @Override
 |  |              @Override
 | 
											
												
													
														|  |              public void startCapture() {
 |  |              public void startCapture() {
 | 
											
												
													
														|  | -                if (cameraView != null) {
 |  | 
 | 
											
												
													
														|  | -                    recordVideFilePath = MyFileUtils.getPublicDirectory(videoDerectoryName) + File.separator
 |  | 
 | 
											
												
													
														|  | -                            + "VID_" + new SimpleDateFormat("yyyyMMdd_HHmmss", Locale.CHINA).format(new Date()) + ".mp4";
 |  | 
 | 
											
												
													
														|  | -                    cameraView.captureVideo(new File(recordVideFilePath));//开始录像
 |  | 
 | 
											
												
													
														|  | -                }
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | 
 |  | +                toStartCapture();
 | 
											
												
													
														|  |              }
 |  |              }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |              @Override
 |  |              @Override
 | 
											
										
											
												
													
														|  | @@ -304,6 +299,26 @@ public class AccompanyActivity extends BaseMVPActivity<ActivityAccompanyBinding,
 | 
											
												
													
														|  |          startService(intentOne);
 |  |          startService(intentOne);
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +    private void toStartCapture() {
 | 
											
												
													
														|  | 
 |  | +        Observable.create(new ObservableOnSubscribe<Object>() {
 | 
											
												
													
														|  | 
 |  | +                    @Override
 | 
											
												
													
														|  | 
 |  | +                    public void subscribe(@NonNull ObservableEmitter<Object> emitter) {
 | 
											
												
													
														|  | 
 |  | +                        if (cameraView != null) {
 | 
											
												
													
														|  | 
 |  | +                            recordVideFilePath = MyFileUtils.getPublicDirectory(videoDerectoryName) + File.separator
 | 
											
												
													
														|  | 
 |  | +                                    + "VID_" + new SimpleDateFormat("yyyyMMdd_HHmmss", Locale.CHINA).format(new Date()) + ".mp4";
 | 
											
												
													
														|  | 
 |  | +                            cameraView.captureVideo(new File(recordVideFilePath));//开始录像
 | 
											
												
													
														|  | 
 |  | +                        }
 | 
											
												
													
														|  | 
 |  | +                    }
 | 
											
												
													
														|  | 
 |  | +                }).subscribeOn(Schedulers.io())
 | 
											
												
													
														|  | 
 |  | +                .observeOn(Schedulers.io())
 | 
											
												
													
														|  | 
 |  | +                .subscribe(new Consumer<Object>() {
 | 
											
												
													
														|  | 
 |  | +                    @Override
 | 
											
												
													
														|  | 
 |  | +                    public void accept(Object o) {
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +                    }
 | 
											
												
													
														|  | 
 |  | +                });
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |      private void goAdjustMusic(String recordId, String title, String coverImg) {
 |  |      private void goAdjustMusic(String recordId, String title, String coverImg) {
 | 
											
												
													
														|  |          if (TextUtils.isEmpty(accompanimentUrl)) {
 |  |          if (TextUtils.isEmpty(accompanimentUrl)) {
 | 
											
												
													
														|  |              ToastUtil.getInstance().showShort("当前曲目无mp3伴奏");
 |  |              ToastUtil.getInstance().showShort("当前曲目无mp3伴奏");
 |