I am new to Swift
I am using MPMovieviewcontroller
when i click next or previous button then no event occurs
here is code

```
import UIKit
import MediaPlayer
class ViewController: UIViewController {
var i : Int = 0

var movieplayer : MPMoviePlayerController!

var arr = ["Akbar","Serial","ak"]
override func viewDidLoad() {
    super.viewDidLoad()

    UIApplication.sharedApplication().beginReceivingRemoteControlEvents()
    self.becomeFirstResponder()
    startplaying()

}

override func canBecomeFirstResponder() -> Bool {
    return true
}
override func remoteControlReceivedWithEvent(event: UIEvent) {
    if event.subtype == UIEventSubtype.RemoteControlNextTrack
    {
        i++
        startplaying()
      println(event.subtype)
    }
}
func startplaying()
{
 if i <= 2
 {
 let path = NSBundle.mainBundle().pathForResource(arr[i], ofType: "mov")
let url = NSURL.fileURLWithPath(path!)

movieplayer = MPMoviePlayerController(contentURL: url)
}

movieplayer.view.frame = CGRect(x: 0, y: 0, width: self.view.frame.size.width, height: self.view.frame.size.height)
movieplayer.view.sizeToFit()

movieplayer.scalingMode = MPMovieScalingMode.AspectFill
movieplayer.fullscreen = true

movieplayer.controlStyle = MPMovieControlStyle.Fullscreen

movieplayer.movieSourceType = MPMovieSourceType.File
movieplayer.prepareToPlay()

self.view.addSubview(movieplayer.view)
}

```

When i debug this code then remoteControlReceivedWithEvent function did not execute

I get donm help from [here](https://stackoverflow.com/questions/3593683/how-can-i-know-users-click-fast-forward-and-fast-rewind-buttons-on-the-playback)