|  | @@ -79,6 +79,9 @@ public class BFRecordScreenController: BFBaseViewController {
 | 
											
												
													
														|  |      
 |  |      
 | 
											
												
													
														|  |      lazy var rscmanager : BFRecordScreenCameraManager = {
 |  |      lazy var rscmanager : BFRecordScreenCameraManager = {
 | 
											
												
													
														|  |          let m = BFRecordScreenCameraManager()
 |  |          let m = BFRecordScreenCameraManager()
 | 
											
												
													
														|  | 
 |  | +        m.assetPlayer = assetPlayer
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +        
 | 
											
												
													
														|  |          m.recordProgressCallBack = {[weak self] progress in
 |  |          m.recordProgressCallBack = {[weak self] progress in
 | 
											
												
													
														|  |              guard let wself = self else { return }
 |  |              guard let wself = self else { return }
 | 
											
												
													
														|  |              wself.rscurrentManager.currentAssetProgress = progress
 |  |              wself.rscurrentManager.currentAssetProgress = progress
 | 
											
										
											
												
													
														|  | @@ -555,12 +558,17 @@ public class BFRecordScreenController: BFBaseViewController {
 | 
											
												
													
														|  |              var nextAction : ((Bool) -> Void)?
 |  |              var nextAction : ((Bool) -> Void)?
 | 
											
												
													
														|  |              if type == BFChooseMusicViewClickType.sure {
 |  |              if type == BFChooseMusicViewClickType.sure {
 | 
											
												
													
														|  |                  wself.hadChoosed(music: vv?.chosedMusic)
 |  |                  wself.hadChoosed(music: vv?.chosedMusic)
 | 
											
												
													
														|  | 
 |  | +                wself.audioSettingView.musicSlider.value = Float(vv?.musicVolume ?? 0)
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +                BFLog(1, message: "volume1 sure: \(wself.choseMusicPanel.musicVolume)")
 | 
											
												
													
														|  |              }else if type == .cancle{
 |  |              }else if type == .cancle{
 | 
											
												
													
														|  | -                
 |  | 
 | 
											
												
													
														|  | 
 |  | +                wself.choseMusicPanel.musicVolume = Int(wself.audioSettingView.musicSlider.value)
 | 
											
												
													
														|  | 
 |  | +                BFLog(1, message: "volume1 cancel: \(wself.choseMusicPanel.musicVolume)")
 | 
											
												
													
														|  |              }else if type == .search{
 |  |              }else if type == .search{
 | 
											
												
													
														|  |                  nextAction = {[weak self] isFinished in
 |  |                  nextAction = {[weak self] isFinished in
 | 
											
												
													
														|  |                      guard let wself = self else { return }
 |  |                      guard let wself = self else { return }
 | 
											
												
													
														|  | -                    
 |  | 
 | 
											
												
													
														|  | 
 |  | +                    BFLog(1, message: "volume1 search: \(wself.choseMusicPanel.musicVolume)")
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |                      if isFinished {
 |  |                      if isFinished {
 | 
											
												
													
														|  |                          let vc = BFMusicSearchController()
 |  |                          let vc = BFMusicSearchController()
 | 
											
												
													
														|  |                          vc.modalPresentationStyle = .fullScreen
 |  |                          vc.modalPresentationStyle = .fullScreen
 | 
											
										
											
												
													
														|  | @@ -660,6 +668,8 @@ public class BFRecordScreenController: BFBaseViewController {
 | 
											
												
													
														|  |      // 音量设置
 |  |      // 音量设置
 | 
											
												
													
														|  |      lazy var audioSettingView: BFAudioSettingView = {
 |  |      lazy var audioSettingView: BFAudioSettingView = {
 | 
											
												
													
														|  |          let audioSettingView = BFAudioSettingView(frame: CGRect(x: 0, y: 0, width: cScreenWidth, height: cScreenHeigth))
 |  |          let audioSettingView = BFAudioSettingView(frame: CGRect(x: 0, y: 0, width: cScreenWidth, height: cScreenHeigth))
 | 
											
												
													
														|  | 
 |  | +        audioSettingView.originalMSlider.value = 20
 | 
											
												
													
														|  | 
 |  | +        audioSettingView.musicSlider.value = 20
 | 
											
												
													
														|  |          audioSettingView.isHidden = true
 |  |          audioSettingView.isHidden = true
 | 
											
												
													
														|  |          audioSettingView.musicSlider.valueIsInt = true
 |  |          audioSettingView.musicSlider.valueIsInt = true
 | 
											
												
													
														|  |          audioSettingView.originalMSlider.valueIsInt = true
 |  |          audioSettingView.originalMSlider.valueIsInt = true
 | 
											
										
											
												
													
														|  | @@ -1598,6 +1608,7 @@ public class BFRecordScreenController: BFBaseViewController {
 | 
											
												
													
														|  |              wself.choseMusicPanel.frame = CGRect(x: 0, y: 0, width: cScreenWidth, height: cScreenHeigth)
 |  |              wself.choseMusicPanel.frame = CGRect(x: 0, y: 0, width: cScreenWidth, height: cScreenHeigth)
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |          choseMusicPanel.refreshCurrSelectModel(mod: bgmModel)
 |  |          choseMusicPanel.refreshCurrSelectModel(mod: bgmModel)
 | 
											
												
													
														|  | 
 |  | +        choseMusicPanel.musicVolume = Int(audioSettingView.musicSlider.value)
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      /// 删除指定段落的所有字幕 数据
 |  |      /// 删除指定段落的所有字幕 数据
 | 
											
										
											
												
													
														|  | @@ -2685,13 +2696,12 @@ public class BFRecordScreenController: BFBaseViewController {
 | 
											
												
													
														|  |      func hadChoosed(music:PQVoiceModel?) {
 |  |      func hadChoosed(music:PQVoiceModel?) {
 | 
											
												
													
														|  |          bgmModel = music
 |  |          bgmModel = music
 | 
											
												
													
														|  |          bgmPlayer.replaceCurrentItem(musicPath: bgmModel?.musicPath)
 |  |          bgmPlayer.replaceCurrentItem(musicPath: bgmModel?.musicPath)
 | 
											
												
													
														|  | -        
 |  | 
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |          if let model = music {
 |  |          if let model = music {
 | 
											
												
													
														|  |              
 |  |              
 | 
											
												
													
														|  |              BFEventTrackAdaptor.baseReportUpload(businessType: .bt_buttonClick, objectType: .ot_musicChangerButton, pageSource: .sp_speekPage,extParams: ["musicID":bgmModel?.musicId ?? ""],commonParams: commonParams())
 |  |              BFEventTrackAdaptor.baseReportUpload(businessType: .bt_buttonClick, objectType: .ot_musicChangerButton, pageSource: .sp_speekPage,extParams: ["musicID":bgmModel?.musicId ?? ""],commonParams: commonParams())
 | 
											
												
													
														|  |       
 |  |       
 | 
											
												
													
														|  |              if let title = model.musicName {
 |  |              if let title = model.musicName {
 | 
											
												
													
														|  | -                audioSettingView.musicSlider.value = Float(model.volume)
 |  | 
 | 
											
												
													
														|  |  //                addMusicBtn.setTitle(title, for: .normal)
 |  |  //                addMusicBtn.setTitle(title, for: .normal)
 | 
											
												
													
														|  |  //                addMusicBtn.kf.setImage(with: URL(string: model.avatarUrl), for: .normal)
 |  |  //                addMusicBtn.kf.setImage(with: URL(string: model.avatarUrl), for: .normal)
 | 
											
												
													
														|  |                  
 |  |                  
 |