 
     var previewMedias: [PreviewMedia] = []
     var startIndex: Int = 0
+    var currentIndex: Int = 0
+
+    var currentPlayer: AVPlayer?
 
     let mediaViewCellID = "MediaViewCell"
 


                mediaControlView.type = .Image

                if
                    let imageFileURL = NSFileManager.yepMessageImageURLWithName(message.localAttachmentName),
                    let image = UIImage(contentsOfFile: imageFileURL.path!) {


            case MessageMediaType.Video.rawValue:

                cell.mediaView.scrollView.hidden = true
                cell.mediaView.videoPlayerLayer.hidden = false

                mediaControlView.type = .Video
                mediaControlView.playState = .Playing
