 
                 mediaControlView.type = .Image
 
+                cell.mediaView.scrollView.hidden = false
+                cell.mediaView.videoPlayerLayer.hidden = true
+
                 if
                     let imageFileURL = NSFileManager.yepMessageImageURLWithName(message.localAttachmentName),
                     let image = UIImage(contentsOfFile: imageFileURL.path!) {


                        cell.mediaView.videoPlayerLayer.player?.addObserver(self, forKeyPath: "status", options: NSKeyValueObservingOptions(rawValue: 0), context: nil)

                        //mediaView.videoPlayerLayer.player.play()
                        //mediaView.imageView.removeFromSuperview()



    var previewMedias: [PreviewMedia] = []
    var startIndex: Int = 0
    var currentIndex: Int = 0

    var currentPlayer: AVPlayer?

    let mediaViewCellID = "MediaViewCell"

