浏览代码

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
+            }
         }
     }