Преглед изворни кода

Merge branch 'dev' of https://git.yishihui.com/iOS/MusicVideoPlus into dev
合并代码

jsonwang пре 4 година
родитељ
комит
eedf66e065

+ 3 - 3
MusicVideoPlus/MusicVideoPlus/Classes/Modules/Home/Controllers/MVHomeController.swift

@@ -295,12 +295,12 @@ extension MVHomeController: MVBannerDataSource, MVBannerDelegate {
     func changePlayerStatus(indexPath: IndexPath) {
         let cell: MVBannerCell? = banner.collectionView.cellForItem(at: indexPath) as? MVBannerCell
 
-        if PQSingletoVideoPlayer.shared.player.isPlaying() {
+        if PQSingletoVideoPlayer.shared.isPlaying {
             cell?.pauseView.isHidden = false
-            PQSingletoVideoPlayer.shared.stopPlayer(isRemove: false)
+            PQSingletoVideoPlayer.shared.pausePlayer()
 
         } else {
-            PQSingletoVideoPlayer.shared.resetPlayer()
+            PQSingletoVideoPlayer.shared.resumePlayer()
             cell?.pauseView.isHidden = true
         }
     }

+ 2 - 1
MusicVideoPlus/Podfile

@@ -6,7 +6,8 @@ target 'MusicVideoPlus' do
   source 'https://github.com/CocoaPods/Specs.git'
   pod "BFFramework" ,:git => 'https://git.yishihui.com/iOS/BFFramework.git'
   # 使用本地路径
- # pod 'BFFramework', :path => '/Users/ak/Desktop/BFFramework/'
+  # pod 'BFFramework', :path => '/Users/ak/Desktop/BFFramework/'
+  # pod 'BFFramework', :path => '/Users/sanw/Desktop/BytesFlow/Projects/BFFramework/'
 
   pod 'JWTDecode','2.6.0' # Apple登陆校验库
   pod 'TYAttributedLabel','2.6.9' #  富文本