Browse Source

add error description video

marinofaggiana 3 years ago
parent
commit
609dfb9fe0
1 changed files with 3 additions and 1 deletions
  1. 3 1
      iOSClient/Viewer/NCViewerMedia/NCPlayer/NCPlayer.swift

+ 3 - 1
iOSClient/Viewer/NCViewerMedia/NCPlayer/NCPlayer.swift

@@ -104,7 +104,9 @@ class NCPlayer: NSObject {
                     break
                     break
                 case .failed:
                 case .failed:
                     DispatchQueue.main.async {
                     DispatchQueue.main.async {
-                        NCContentPresenter.shared.messageNotification("_error_", description: "_error_something_wrong_", delay: NCGlobal.shared.dismissAfterSecond, type: NCContentPresenter.messageType.info, errorCode: NCGlobal.shared.errorGeneric, forced: false)
+                        let descriptionError = "Error: \(String(describing: self.appDelegate.player?.currentItem?.error?.localizedDescription)), error: \(String(describing: self.appDelegate.player?.currentItem?.error))"
+
+                        NCContentPresenter.shared.messageNotification("_error_", description: NSLocalizedString("_error_something_wrong_", comment: "") + ", " + descriptionError, delay: NCGlobal.shared.dismissAfterSecond, type: NCContentPresenter.messageType.info, errorCode: NCGlobal.shared.errorGeneric, forced: false)
                     }
                     }
                     break
                     break
                 case .cancelled:
                 case .cancelled: