Browse Source

coding

Signed-off-by: marinofaggiana <marino@marinofaggiana.com>
marinofaggiana 3 years ago
parent
commit
c1afbc20c5
1 changed files with 0 additions and 3 deletions
  1. 0 3
      iOSClient/Viewer/NCViewerMedia/NCPlayer/NCPlayerToolBar.swift

+ 0 - 3
iOSClient/Viewer/NCViewerMedia/NCPlayer/NCPlayerToolBar.swift

@@ -324,17 +324,14 @@ class NCPlayerToolBar: UIView {
       
       
         if type == .began {
         if type == .began {
             print("Interruption began")
             print("Interruption began")
-            // Interruption began, take appropriate actions
         } else if type == .ended {
         } else if type == .ended {
             if let optionsValue = userInfo[AVAudioSessionInterruptionOptionKey] as? UInt {
             if let optionsValue = userInfo[AVAudioSessionInterruptionOptionKey] as? UInt {
                 let options = AVAudioSession.InterruptionOptions(rawValue: optionsValue)
                 let options = AVAudioSession.InterruptionOptions(rawValue: optionsValue)
                 if options.contains(.shouldResume) {
                 if options.contains(.shouldResume) {
-                    // Interruption Ended - playback should resume
                     print("Interruption Ended - playback should resume")
                     print("Interruption Ended - playback should resume")
                     ncplayer?.playerPlay()
                     ncplayer?.playerPlay()
                     startTimerAutoHide()
                     startTimerAutoHide()
                 } else {
                 } else {
-                    // Interruption Ended - playback should NOT resume
                     print("Interruption Ended - playback should NOT resume")
                     print("Interruption Ended - playback should NOT resume")
                 }
                 }
             }
             }