marinofaggiana 4 years ago
parent
commit
c63f584606
1 changed files with 3 additions and 3 deletions
  1. 3 3
      iOSClient/Viewer/NCViewerImage/NCViewerImageDetailView.swift

+ 3 - 3
iOSClient/Viewer/NCViewerImage/NCViewerImageDetailView.swift

@@ -119,9 +119,9 @@ class NCViewerImageDetailView: UIView {
             if let locationDB = NCManageDatabase.sharedInstance.getLocationFromGeoLatitude(latitudeString, longitude: longitudeString) {
             if let locationDB = NCManageDatabase.sharedInstance.getLocationFromGeoLatitude(latitudeString, longitude: longitudeString) {
                 location = locationDB
                 location = locationDB
             }
             }
-           
-            self.updateContent()
         }
         }
+        
+        self.updateContent()
     }
     }
     
     
     //MARK: - Map
     //MARK: - Map
@@ -150,7 +150,7 @@ class NCViewerImageDetailView: UIView {
                 dimLabel.text = NSLocalizedString("_dimension_", comment: "")
                 dimLabel.text = NSLocalizedString("_dimension_", comment: "")
                 dimValue.text = "\(Int(image.size.width)) x \(Int(image.size.height))"
                 dimValue.text = "\(Int(image.size.width)) x \(Int(image.size.height))"
             }
             }
-        } else if metadata?.typeFile == k_metadataTypeFile_video {
+        } else if metadata?.typeFile == k_metadataTypeFile_video || metadata?.typeFile == k_metadataTypeFile_audio  {
             if let url = NCKTVHTTPCache.shared.getVideoURL(metadata: metadata!) {
             if let url = NCKTVHTTPCache.shared.getVideoURL(metadata: metadata!) {
                 let playerVideo = AVPlayer(url: url)
                 let playerVideo = AVPlayer(url: url)
                 if let duration = playerVideo.currentItem?.asset.duration {
                 if let duration = playerVideo.currentItem?.asset.duration {