|
@@ -69,7 +69,7 @@ class CommunityVideoCoverCollectionCell: UICollectionViewCell {
|
|
|
|
|
|
// 视频播放
|
|
|
addSubview(videoPlayView)
|
|
|
- videoPlayView.addTapGesture(1, target: self, action: #selector(videoTapAction))
|
|
|
+// videoPlayView.addTapGesture(1, target: self, action: #selector(videoTapAction))
|
|
|
addSubview(bottomSepView)
|
|
|
addSubview(bgView)
|
|
|
|
|
@@ -84,7 +84,7 @@ class CommunityVideoCoverCollectionCell: UICollectionViewCell {
|
|
|
|
|
|
// 底部渐变
|
|
|
addSubview(bottomGradientView)
|
|
|
- bottomGradientView.addTapGesture(1, target: self, action: #selector(videoTapAction))
|
|
|
+// bottomGradientView.addTapGesture(1, target: self, action: #selector(videoTapAction))
|
|
|
|
|
|
// 底部
|
|
|
bottomGradientView.addSubview(bottomCommentView)
|
|
@@ -371,7 +371,7 @@ class CommunityVideoCoverCollectionCell: UICollectionViewCell {
|
|
|
}()
|
|
|
|
|
|
// MARK: 视频播放View
|
|
|
- private lazy var videoPlayView: CommunityVideoPlayView = {
|
|
|
+ lazy var videoPlayView: CommunityVideoPlayView = {
|
|
|
let videoPlayView = CommunityVideoPlayView()
|
|
|
videoPlayView.isUserInteractionEnabled = true
|
|
|
return videoPlayView
|
|
@@ -706,13 +706,13 @@ class CommunityVideoCoverCollectionCell: UICollectionViewCell {
|
|
|
videoPlayView.pause()
|
|
|
}
|
|
|
|
|
|
- @objc func videoTapAction(_ tap: UITapGestureRecognizer?) {
|
|
|
- if videoPlayView.pauseFlag {
|
|
|
- self.play()
|
|
|
- } else {
|
|
|
- self.pause()
|
|
|
- }
|
|
|
- }
|
|
|
+// @objc func videoTapAction(_ tap: UITapGestureRecognizer?) {
|
|
|
+// if videoPlayView.pauseFlag {
|
|
|
+// self.play()
|
|
|
+// } else {
|
|
|
+// self.pause()
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
var videoItemMdl: CommunityVideoItemModel? {
|
|
|
didSet {
|