소스 검색

test

Signed-off-by: marinofaggiana <marino@marinofaggiana.com>
marinofaggiana 3 년 전
부모
커밋
30dec6c638
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      iOSClient/Viewer/NCViewerMedia/NCViewerMedia.swift

+ 5 - 1
iOSClient/Viewer/NCViewerMedia/NCViewerMedia.swift

@@ -103,7 +103,11 @@ class NCViewerMedia: UIViewController {
 
         loadImage(metadata: metadata) { ocId, image in
             self.image = image
-            self.imageVideoContainer.image = image
+            // do not update if is present the videoLayer
+            let numSublayers = self.imageVideoContainer.layer.sublayers?.count
+            if numSublayers == nil {
+                self.imageVideoContainer.image = image
+            }
         }
     }