         
         if let cell = tableView.cellForRow(at: indexPath)
         {
-            boundsVideo = cell.superview!.convert(cell.frame, to: self.view)
-            boundsVideo.size.height = sizeCell.height
+            frameVideo = cell.superview!.convert(cell.frame, to: self.view)
+            frameVideo.size.height = sizeCell.height
             
             if self.videoController == nil
             {
                 videoController = AVPlayerViewController()
-                videoController?.view.frame = boundsVideo
+                videoController?.view.frame = frameVideo
                 view.addSubview(videoController!.view)
                 videoController?.view.isHidden = true
             }

            
            let barController = self.parent as! UITabBarController
            
            self.boundsVideo.size = sizeCell
            controller.view.frame = self.boundsVideo
            let orientation = UIDevice.current.orientation
            if orientation == .landscapeRight || orientation == .landscapeLeft
            {

            UIView.animate(withDuration: 0.25, animations:
            { [unowned self] in
                self.videoController!.view.isHidden = false
                self.videoController!.view.frame = self.frameVideo
            }, completion:
            { [unowned self] (flag) in
                self.videoController!.player = AVPlayer(url: url)
