Browse Source

Merge branch 'master' of https://git.yishihui.com/iOS/BFRecordScreenKit

* 'master' of https://git.yishihui.com/iOS/BFRecordScreenKit:
  添加开始录音回调
  图片 sticker 直接使用 uiimage 传值
胡志强 3 years ago
parent
commit
154834f505

+ 1 - 1
BFRecordScreenKit/Classes/BFRecordExport.swift

@@ -143,7 +143,7 @@ public class BFRecordExport {
         }
 
         let sticker = splitBaseMaterial(timelineIn: totalDur, model_in: 0, duration: duration)
-        sticker.originalData = itemModel.coverImg?.pngData()
+        sticker.originalUImage = itemModel.coverImg
         sticker.volumeGain = 0
         sticker.type = StickerType.IMAGE.rawValue
         videoStickers.append(sticker)

+ 4 - 0
BFRecordScreenKit/Classes/BFVoiceRecordManager.swift

@@ -100,6 +100,10 @@ extension BFVoiceRecordManager: BFRecorderManagerDelegate {
 //        BFLog(message: "录音机进度:\(recoderTime)")
         recorderProgrossHandle?(recoderTime)
     }
+    
+    public func recorderDidStart() {
+        BFLog(message: "录音机开始")
+    }
 
     public func recorderDidStop(_ outfile: String) {
         if mIsCancel {