| | |
| | | if let imageV = Url.jq_getVideoThumbnail(){ |
| | | self.addPlaceHoderView(firstFPSImage:imageV) |
| | | } |
| | | // URL.jq_splitVideoFileUrlFps(splitFileUrl: Url, fps: 1) {[weak self] state, images in |
| | | // if let first = images.first{ |
| | | // DispatchQueue.main.async { |
| | | // self?.addPlaceHoderView(firstFPSImage: first) |
| | | // } |
| | | // } |
| | | // } |
| | | } |
| | | |
| | | if autoPlay{ |
| | |
| | | |
| | | imageView.contentMode = .scaleAspectFit |
| | | placeV.addSubview(imageView) |
| | | imageView.frame = player.frame |
| | | |
| | | |
| | | let btn_placeholder = UIButton(type: .custom) |
| | | btn_placeholder.setImage(UIImage(named: "icon_play"), for: .normal) |
| | |
| | | make.center.equalToSuperview() |
| | | } |
| | | |
| | | imageView.snp.makeConstraints { make in |
| | | make.edges.equalToSuperview() |
| | | } |
| | | |
| | | player.placeholder = placeV |
| | | } |
| | | |