Browse Source

设置不同背景色

jsonwang 3 years ago
parent
commit
a48fdd5624

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

@@ -158,6 +158,9 @@ public class PQGPUImagePlayerView: UIView {
         view.delegate = self
         let tap = UITapGestureRecognizer(target: self, action: #selector(RenderViewOnclick))
         view.addGestureRecognizer(tap)
+ 
+        view.backgroundRenderColor =  Color.init(red: Float(PQBFConfig.shared.styleBackGroundColor.rgbaf[0]), green: Float(PQBFConfig.shared.styleBackGroundColor.rgbaf[1]), blue: Float(PQBFConfig.shared.styleBackGroundColor.rgbaf[2]))
+
         return view
     }()
 
@@ -225,6 +228,7 @@ public class PQGPUImagePlayerView: UIView {
     override public init(frame: CGRect) {
         super.init(frame: frame)
 
+        
         addSubview(renderView)
         addSubview(progressLab)
         addSubview(playMaskView)