marinofaggiana 6 rokov pred
rodič
commit
5622e39918
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      iOSClient/Viewer/NCViewerImagemeter.swift

+ 2 - 2
iOSClient/Viewer/NCViewerImagemeter.swift

@@ -143,10 +143,9 @@ class NCViewerImagemeter: UIViewController {
         
         
         for element in annotation.elements {
         for element in annotation.elements {
             if element.id == sender.tag {
             if element.id == sender.tag {
-                let fileNamePath =  pathArchiveImagemeter + "/" + element.audio_recording.recording_filename
-                // player
                 do {
                 do {
 
 
+                    let fileNamePath =  pathArchiveImagemeter + "/" + element.audio_recording.recording_filename
                     try audioPlayer = AVAudioPlayer(contentsOf: URL(fileURLWithPath: fileNamePath))
                     try audioPlayer = AVAudioPlayer(contentsOf: URL(fileURLWithPath: fileNamePath))
                     audioPlayer.delegate = self
                     audioPlayer.delegate = self
                     audioPlayer.prepareToPlay()
                     audioPlayer.prepareToPlay()
@@ -156,6 +155,7 @@ class NCViewerImagemeter: UIViewController {
                     timer = Timer.scheduledTimer(timeInterval: 1, target: self, selector: #selector(updateTimer), userInfo: nil, repeats: true)
                     timer = Timer.scheduledTimer(timeInterval: 1, target: self, selector: #selector(updateTimer), userInfo: nil, repeats: true)
 
 
                 } catch {
                 } catch {
+                    
                 }
                 }
             }
             }
         }
         }