Explorar o código

修改加载bundle 视频资源方式

jsonwang %!s(int64=3) %!d(string=hai) anos
pai
achega
1c1c2d087e

+ 1 - 1
BFFramework/Classes/PQGPUImage/akfilters/PQMovieFilter.swift

@@ -151,7 +151,7 @@ class PQMovieFilter: PQBaseFilter {
             2,try find move file from bfframework bundle e.g. 库 bundle 的地址 "/var/containers/Bundle/Application/AD663220-6AF2-4841-AF82-071C10D78959/MusicVideoPlus.app/BFFramework.bundle/endMovieA.mp4"
             */
             var videoFilePath = movieSticker.locationPath
-            if (!videoFilePath.contains("var/mobile/Media")) && (!videoFilePath.contains("BFFramework.bundle")) {
+            if (!videoFilePath.contains("var/mobile/Media")) && (!videoFilePath.contains("BFFramework_Resources.bundle")) {
                 videoFilePath = documensDirectory + videoFilePath
             }
             BFLog(2, message: "视频地址 \(String(describing: videoFilePath))")