         }
     }
 
-    private var asset: AVURLAsset!
+    private var asset: AVAsset!
     private var playerItem: AVPlayerItem?
     
     private var player: AVPlayer!


    public var delegate: PlayerDelegate!
    
    public var path: NSString! {
        get {
            return self.asset.URL.absoluteString
        }
        set {
            let url: NSURL? = NSURL(string: newValue)
            if let asset: AVURLAsset? = AVURLAsset(URL: url, options: .None) {
                self.setupAsset(asset!)
            }
        }
    }

        self.delegate.playerPlaybackStateDidChange(self)
    }

    private func setupAsset(asset: AVAsset) {
        if self.playbackState == .Playing {
            self.pause()
        }
