|
@@ -649,9 +649,10 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
BFLog(message: "新录制完成::::\(materialsModel?.locationPath ?? "")")
|
|
|
}
|
|
|
|
|
|
- // 字幕设置回调
|
|
|
+
|
|
|
// 设置默认值
|
|
|
setSubtitleStyle(settingModel: subtitleSettingView.subtitle.setting)
|
|
|
+ // 字幕设置回调
|
|
|
subtitleSettingView.subtitleSettingCallBack = { [weak self] subtitileModel in
|
|
|
|
|
|
self?.setSubtitleStyle(settingModel: subtitileModel.setting)
|
|
@@ -703,7 +704,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
/// - Parameter time: 当前播放的进度
|
|
|
func updateSubtitle(time: CMTime) {
|
|
|
BFLog(message: "currTime is \(CMTimeGetSeconds(time))")
|
|
|
- if isRecording {
|
|
|
+ if isRecording || !subtitleSettingView.subtitle.setting.subtitleIsShow{
|
|
|
return
|
|
|
}
|
|
|
var findShowSubtitle: PQEditSubTitleModel?
|
|
@@ -750,6 +751,8 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
} else { // 上
|
|
|
subtitleLabel.frame = CGRect(x: leftPoint, y: cScreenHeigth * 0.12, width: cScreenWidth - 37 * 2, height: height)
|
|
|
}
|
|
|
+ }else{
|
|
|
+ subtitleLabel.text = ""
|
|
|
}
|
|
|
}
|
|
|
|