|
@@ -847,6 +847,10 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
|
|
|
@objc func startRecord() {
|
|
|
// BFLog(1, message: "start \(UIControl.Event.touchDown)")
|
|
|
+ if(!checkStatus(show:true)){
|
|
|
+ BFLog(message: "没有录音权限不能录制")
|
|
|
+ return
|
|
|
+ }
|
|
|
|
|
|
// 停止进度条滚动
|
|
|
if isDragingProgressSlder {
|
|
@@ -1098,13 +1102,15 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
BFLog(message: "麦克风权限被拒绝,请在设置中打开")
|
|
|
if show {
|
|
|
let remindData = BFBaseModel()
|
|
|
- remindData.title = "票圈视频需要访问你的麦克风才能录音"
|
|
|
+ remindData.title = "需要开启「麦克风权限」才可以进行录制"
|
|
|
remindData.summary = ""
|
|
|
let remindView = BFRemindView(frame: CGRect(x: 0, y: 0, width: cScreenWidth, height: cScreenHeigth))
|
|
|
remindView.isBanned = true
|
|
|
- remindView.confirmBtn.setTitle("去设置", for: .normal)
|
|
|
+ remindView.confirmBtn.setTitle("去开启", for: .normal)
|
|
|
+ remindView.confirmBtn.setTitleColor(UIColor.hexColor(hexadecimal: "#389AFF"), for: .normal)
|
|
|
UIApplication.shared.keyWindow?.addSubview(remindView)
|
|
|
remindView.remindData = remindData
|
|
|
+ remindView.cancelBtn.setTitleColor(UIColor.hexColor(hexadecimal: "#389AFF"), for: .normal)
|
|
|
remindView.remindBlock = { item, _ in
|
|
|
if item.tag == 2 {
|
|
|
openAppSetting()
|