splited out codes for AVPlayer as Player model class.