|
@@ -248,13 +248,6 @@ extension NCPlayer: VLCMediaPlayerDelegate {
|
|
|
}
|
|
|
|
|
|
func mediaPlayerSnapshot(_ aNotification: Notification) {
|
|
|
-
|
|
|
- if let data = NSData(contentsOfFile: fileNamePreviewLocalPath),
|
|
|
- let image = UIImage(data: data as Data),
|
|
|
- let image = image.resizeImage(size: CGSize(width: NCGlobal.shared.sizeIcon, height: NCGlobal.shared.sizeIcon)),
|
|
|
- let data = image.jpegData(compressionQuality: 0.5) {
|
|
|
- try? data.write(to: URL(fileURLWithPath: fileNameIconLocalPath))
|
|
|
- }
|
|
|
print("Snapshot saved on \(fileNameIconLocalPath)")
|
|
|
}
|
|
|
|