add Tencent player SDK into Unity
-
取其中資料夾 Player,Third, common, app, Resource, Assets.xcassets ,push(推播)
-
匯入 TXLiteAV_professional.framework (選加入group)
-
匯入他說的一堆 framework
-
看target參數
-
target -> Build Setting -> preprocessor Macros
增加tag ENABLE_PLAY 或是有的沒的
-
加入common, third, Player, app 資料夾( 選加入group 不然不寫絕對路徑讀不到)
-
Build Setting -> Search path -> head search Paths 需要設定
原專案這邊是空的 可是這裡好像繼承了unity的設定 所以要看一下怎麼設定
-
砍掉一些檔案&資料夾
檔案
CustomProcessFilter.m
superPlayer/ListUI/LiVIdeoCell.m
superPlayer/ZFPlayer.h. --//#import <Masonry/Masonry.h>
資料夾
common/BeautySettingPanel/ZipArchive/ZipArchive.mm
common/VideoCompress
common/VideoLoading
common/VideoLoadingController
third/QBImagePicker
third/Masonry
player/superplayer
資源資料夾
rescorce/videoedit/裡面的bundel
-
Build Setting -> exception (try catch)
-
匯入framework
- Accelerate framework (會有一堆8888)
- sqliteb3, (會說要)sqlite
- MobileCoreServices.framework
- SystemConfiguration.framework
-
加入麥克風權限 (會閃退) 加入相機權限