 import Foundation
 import AVFoundation
 
+struct k {
+	static let play = "play"
+	static let item = "item"
+	static let name = "name"
+	static let list = "list"
+	static let link = "link"
+	static let rank = "rank"
+}
+
 class PlayItem : NSObject {
-	var name : String = "item"
+	var name : String = k.item
 	var link : NSURL = NSURL.init(string: "http://")!
 	var rank = 0
 	
 	override init() {
-		name = "item"
+		name = k.item
 		link = NSURL.init(string: "http://")!
 		super.init()
 	}

						let track0 = AVURLAsset(URL:fileURL!, options:nil).tracks[0]
						if track0.mediaType != AVMediaTypeVideo
						{
							print("validate nonAV -> .None")
							return .None
						}
						
						let path = fileURL!.absoluteString.stringByRemovingPercentEncoding
						print("validate file \(path)")
					} else {
						print("validate item -> \(item)")
					}
				}
			}
			print("validate Above -> .Move")
			return .Move
		}
		print("validate other -> .None")
		return .None
	}
	

}

class PlayList: NSObject {
	var name : String = k.list
	var list : Array <PlayItem> = Array()
	
	override init() {
		name = k.list
		list = Array <PlayItem> ()
		super.init()
	}
