| | |
| | | player.url = Url |
| | | |
| | | if needFirstImage{ |
| | | URL.jq_splitVideoFileUrlFps(splitFileUrl: Url, fps: 30) {[weak self] state, images in |
| | | if let first = images.first{ |
| | | DispatchQueue.main.async { |
| | | self?.addPlaceHoderView(firstFPSImage: first) |
| | | } |
| | | } |
| | | 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{ |