Browse Source

调整时间显示位置

jsonwang 3 years ago
parent
commit
0cbe5cb87a

+ 4 - 6
BFFramework/Classes/Stuckpoint/ViewModel/PQGPUImagePlayerView.swift

@@ -182,7 +182,7 @@ public class PQGPUImagePlayerView: UIView {
 
     // 播放进度/总时长
     lazy var progressLab: UILabel = {
-        let titleLab = UILabel(frame: CGRect(x: (self.frame.size.width - 140) / 2, y: self.frame.size.height - 10 - 14, width: 140, height: 12))
+        let titleLab = UILabel(frame: CGRect(x: (self.frame.size.width - 140) / 2, y: 10, width: 140, height: 12))
         titleLab.font = UIFont.systemFont(ofSize: 12, weight: .medium)
         titleLab.textColor = UIColor.white
         titleLab.textAlignment = .center
@@ -263,6 +263,7 @@ public class PQGPUImagePlayerView: UIView {
         if borderLayer != nil {
             renderView.layer.addSublayer(borderLayer!)
         }
+        
 
         if isAutoHiden {
             borderLayer?.opacity = 0
@@ -309,7 +310,7 @@ public class PQGPUImagePlayerView: UIView {
         playerEmptyView.frame = CGRect(x: 0, y: 0, width: self.frame.size.width, height: self.frame.size.height)
         playMaskView.frame = CGRect.init(x: 0, y: 0, width: self.frame.width, height: self.frame.height)
         tipLab.frame = CGRect(x: (self.frame.size.width - 100) / 2, y: (self.frame.size.height - 14) / 2, width: 100, height: 14)
-        progressLab.frame = CGRect(x: (self.frame.size.width - 140) / 2, y: self.frame.size.height - 10 - 14, width: 140, height: 14)
+        progressLab.frame = CGRect(x: (self.frame.size.width - 140) / 2, y: 10, width: 140, height: 14)
         playView.frame = CGRect(x: (self.frame.size.width - self.frame.size.height / 3.6) / 2, y: (self.frame.size.height - self.frame.size.height / 3.6) / 2, width: self.frame.size.height / 3.6, height: self.frame.size.height / 3.6)
     }
 
@@ -497,10 +498,7 @@ public class PQGPUImagePlayerView: UIView {
             }
       
         }
-
-   
-
-  
+ 
     }
 
     //创建下一个filter 数据