     }
     
     func displayOptions() {
-        let alert = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet)
+        var alert: UIAlertController!
+        if (UIDevice.current.userInterfaceIdiom == .pad) {
+            alert = UIAlertController(title: nil, message: nil, preferredStyle: .alert)
+        } else {
+            alert = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet)
+        }
         alert.addAction(UIAlertAction(title: "Cancel", style: .cancel))
         alert.addAction(UIAlertAction(title: "Playback Speed", style: .default, handler: { _ in
             self.showPlaybackSpeedMenu()

    }
    
    func showPlaybackSpeedMenu() {
        let alert = UIAlertController(title: "Playback Speed", message: nil, preferredStyle: .actionSheet)
        alert.addAction(UIAlertAction(title: "Cancel", style: .cancel))
        PlaybackSpeed.allCases.forEach{ playbackSpeed in
            let action = UIAlertAction(title: playbackSpeed.rawValue, style: .default, handler: { (_) in

    }
    
    func showQualitySelector() {
        var alert: UIAlertController!
        if (UIDevice.current.userInterfaceIdiom == .pad) {
            alert = UIAlertController(title: "Quality", message: nil, preferredStyle: .alert)
        } else {
            alert = UIAlertController(title: "Quality", message: nil, preferredStyle: .actionSheet)
        }
        
        alert.addAction(UIAlertAction(title: "Cancel", style: .cancel))
        
        for resolutionInfo in videoPlayerView.resolutionInfo {
