|
@@ -300,7 +300,7 @@ class PQStuckPointPublicController: BFBaseViewController {
|
|
|
// 手势提示
|
|
|
lazy var pinView: UIImageView = {
|
|
|
let pinView = UIImageView()
|
|
|
- pinView.kf.setImage(with: URL(fileURLWithPath: currentBundlePath()!.path(forResource: "editCoverPin", ofType: ".gif")!))
|
|
|
+ pinView.kf.setImage(with: URL(fileURLWithPath: Bundle.current(moduleName: "BFStuckPointKit",isAssets: false)!.path(forResource: "editCoverPin", ofType: ".gif")!))
|
|
|
return pinView
|
|
|
}()
|
|
|
|
|
@@ -1908,7 +1908,7 @@ extension PQStuckPointPublicController {
|
|
|
var orgeBitRate = (editProjectModel?.sData?.videoMetaData?.videoWidth ?? 0) * (editProjectModel?.sData?.videoMetaData?.videoHeight ?? 0) * 3
|
|
|
|
|
|
// 片尾的视频素材地址
|
|
|
- let moveResPath = currentBundlePath()!.path(forResource: (editProjectModel?.sData?.videoMetaData?.videoWidth ?? 0) < (editProjectModel?.sData?.videoMetaData?.videoHeight ?? 0) ? "endMovieB" : "endMovieA", ofType: "mp4")
|
|
|
+ let moveResPath = Bundle.current(moduleName: "BFStuckPointKit",isAssets: false)?.path(forResource: (editProjectModel?.sData?.videoMetaData?.videoWidth ?? 0) < (editProjectModel?.sData?.videoMetaData?.videoHeight ?? 0) ? "endMovieB" : "endMovieA", ofType: "mp4")
|
|
|
if moveResPath?.count ?? 0 == 0 {
|
|
|
BFLog(message: "片尾的视频素材地址无效!!!")
|
|
|
return
|
|
@@ -2012,7 +2012,7 @@ extension PQStuckPointPublicController {
|
|
|
userNameSticker.materialPosition = userNamePostion
|
|
|
|
|
|
// 4,音频
|
|
|
- let soundResPath = currentBundlePath()!.path(forResource: "endMovieSound", ofType: "mp3")
|
|
|
+ let soundResPath = Bundle.current(moduleName: "BFStuckPointKit",isAssets: false)?.path(forResource: "endMovieSound", ofType: "mp3")
|
|
|
let soundAsset = AVURLAsset(url: URL(fileURLWithPath: soundResPath ?? ""), options: nil)
|
|
|
self?.endMovieExporter = PQCompositionExporter(asset: soundAsset, videoComposition: nil, audioMix: nil, filters: nil, stickers: [bgMovieInfo, avatarSticker, userNameSticker], animationTool: nil, exportURL: outPutMP4URL)
|
|
|
self?.endMovieExporter.isEndMovie = true
|