소스 검색

Merge branch 'community' of https://git.yishihui.com/iOS/BFFramework into community

wenweiwei 3 년 전
부모
커밋
5c7e3af1a4
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      BFFramework/Classes/BFModules/BFUtility/PQSingletoVideoPlayer.swift

+ 5 - 0
BFFramework/Classes/BFModules/BFUtility/PQSingletoVideoPlayer.swift

@@ -82,6 +82,11 @@ public class PQSingletoVideoPlayer: NSObject {
             PQSingletoMemoryUtil.shared.playCount = PQSingletoMemoryUtil.shared.playCount + 1
         }
     }
+    
+    public func reRenderView(newView: UIView) {
+        player.removeVideoWidget()
+        player.setupVideoWidget(newView, insert: 0)
+    }
 
     /// 重制播放
     public func resetPlayer() {