소스 검색

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

* 'master' of https://git.yishihui.com/iOS/BFRecordScreenKit:
  添加开始录音回调
  图片 sticker 直接使用 uiimage 传值
胡志强 3 년 전
부모
커밋
154834f505
2개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      BFRecordScreenKit/Classes/BFRecordExport.swift
  2. 4 0
      BFRecordScreenKit/Classes/BFVoiceRecordManager.swift

+ 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 {