|
@@ -44,7 +44,7 @@ public class PQSingletoVideoPlayer: NSObject {
|
|
|
/// - Parameters:
|
|
|
/// - videoData: <#videoData description#>
|
|
|
/// - controllerView: <#controllerView description#>
|
|
|
- public func configPlyer(videoData: PQVideoListModel, controllerView: UIView) {
|
|
|
+ public func configPlyer(videoData: PQVideoListModel, controllerView: UIView, renderMode: TX_Enum_Type_RenderMode = .RENDER_MODE_FILL_SCREEN) {
|
|
|
isPlayEnd = false
|
|
|
isRealPlay = false
|
|
|
isSemiRealPlay = false
|
|
@@ -52,6 +52,7 @@ public class PQSingletoVideoPlayer: NSObject {
|
|
|
isFirstFrame = false
|
|
|
isPlayerError = false
|
|
|
loadingTime = Date().timeIntervalSince1970 * 1000
|
|
|
+ player.setRenderMode(renderMode)
|
|
|
player.stopPlay()
|
|
|
player.removeVideoWidget()
|
|
|
player.setupVideoWidget(controllerView, insert: 0)
|
|
@@ -128,10 +129,10 @@ public class PQSingletoVideoPlayer: NSObject {
|
|
|
playVideoData = nil
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/// seek
|
|
|
/// - Parameter time: <#time description#>
|
|
|
- public func seek(time:Float){
|
|
|
+ public func seek(time: Float) {
|
|
|
player.seek(time)
|
|
|
}
|
|
|
|