 
 open class MediaItemsController: UICollectionViewController, UICollectionViewDelegateFlowLayout, ReusableController {
   open static let SegueIdentifier = "Media Items"
-  //open static let StoryboardControllerId = "MediaItemsController"
   static let BundleId = "com.rubikon.TVSetKit"
-
-  //let CellIdentifier = "MediaItemCell"
 
   var HeaderViewIdentifier: String { return "MediaItemsHeader" }
 

#endif

#if os(tvOS)
  @objc open func tapped(_ gesture: UITapGestureRecognizer) {
    var playImmediately = false

    if gesture.allowedPressTypes.contains(NSNumber(value: UIPressType.playPause.rawValue)) {
      playImmediately = true
    }

    if let location = gesture.view as? UICollectionViewCell {
      navigate(from: location, playImmediately: playImmediately)
    }
  }
#endif

  open func navigate(from view: UICollectionViewCell, playImmediately: Bool=false) {

      cell.configureCell(item: item, localizedName: localizer.getLocalizedName(item.name))

#if os(tvOS)
      let longPressGesture = UILongPressGestureRecognizer(target: self, action: #selector(self.longPressed(_:)))

      longPressGesture.allowedPressTypes = [NSNumber(value: UIPressType.select.rawValue), NSNumber(value: UIPressType.playPause.rawValue)]

      cell.addGestureRecognizer(longPressGesture)

      let doubleTapGesture = UITapGestureRecognizer(target: self, action: #selector(self.doubleTapPressed(_:)))
      doubleTapGesture.numberOfTapsRequired = 2

      cell.addGestureRecognizer(doubleTapGesture)
  
      let tapGesture = UITapGestureRecognizer(target: self, action: #selector(self.tapped(_:)))
      tapGesture.require(toFail: doubleTapGesture)
  
      tapGesture.allowedPressTypes = [NSNumber(value: UIPressType.select.rawValue), NSNumber(value: UIPressType.playPause.rawValue)]
  
      cell.addGestureRecognizer(tapGesture)
#endif

      if !mobile,
