 //
 
 import UIKit
-import MediaPlayer
 import AVKit
 
 class ViewController: UIViewController {
     
-    override func viewDidLoad() {
-        super.viewDidLoad()
-        // Do any additional setup after loading the view, typically from a nib.
-        
-    }
-
-    override func didReceiveMemoryWarning() {
-        super.didReceiveMemoryWarning()
-        // Dispose of any resources that can be recreated.
-    }
-
     //MARK:- Actions
+    
     @IBAction func showVideo(_ sender: UIButton) {
-        
         // Video file
         let videoFile = Bundle.main.path(forResource: "trailer_720p", ofType: "mov")
                 

        
        // Do something with result
        _ = parser.searchSubtitles(at: 2.0) // Search subtitle at 2.0 seconds
        
    }
    
}


        
        // Play
        moviePlayer.player?.play()
    }
    
    func subtitleParser() {
        // Subtitle file
        let subtitleFile = Bundle.main.path(forResource: "trailer_720p", ofType: "srt")
        let subtitleURL = URL(fileURLWithPath: subtitleFile!)
