Ver Fonte

分享回来后自动播放

jsonwang há 3 anos atrás
pai
commit
a594e0b292

+ 4 - 3
BFFramework/Classes/Stuckpoint/Controller/PQStuckPointPublicController.swift

@@ -1174,8 +1174,7 @@ extension PQStuckPointPublicController {
         if !isExportSuccess {
             beginExport()
         }
-        playBtn.isHidden = true
-        avPlayer.play()
+    
     }
 
     @objc func didBecomeActiveNotification() {
@@ -1183,7 +1182,8 @@ extension PQStuckPointPublicController {
             DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 1) { [weak self] in
                 self?.isShared = false
                 cShowHUB(superView: nil, msg: "分享成功")
-      
+                self?.playBtn.isHidden = true
+                self?.avPlayer.play()
             }
         }
     }
@@ -1291,6 +1291,7 @@ extension PQStuckPointPublicController {
 
                 .uploadObjectAsync(bucketName: bucketName, objectKey: objectKey, data: data!, fileExtensions: "png", imageUploadBlock: { _, code, ossObjectKey, _ in
                     if code == 1 && ossObjectKey == objectKey && ossObjectKey.count > 0 {
+                        //add by ak 这里会在服务器生成分享使用的图片到1-2S 时间
                         PQUploadViewModel.updateVideo(title: self?.videoData?.title ?? "", videoId: self?.videoData?.uniqueId ?? "", coverImgPath: objectKey, descr: "") { newVideoData, msg in
                             
                             if newVideoData == nil {