 	addImagesFromContext: (context) ->
 		_.pluck(context.layers, "image").map @addImage
 
+	addPlayersFromContext: (context) ->
+		_.pluck(context.layers, "player").map @addPlayer
+
 	addImage: (image) =>
 		if image and image not in @_media
 			@_media.push(image)

		# By default we take the image from the prototype and the device
		@addImagesFromContext(Framer.DefaultContext)
		@addImagesFromContext(Framer.CurrentContext)

		# If we don't need any images to be preloaded we can stop
		if not @_media.length


	_handleTimeout: =>
		return unless @isLoading
		console.error "Preloader timeout, ending"
		@end()

exports.enable = ->
