src/players/WebWorkerPlayer.js
/** The static `create(params)` method creates (asynchronously) and initializes a
	`WebWorkerPlayer`, with a web worker ready to play. The `params` must include the
	`playerBuilder` function to execute on the web worker's environment.
	*/
The static `create(params)` method creates (asynchronously) and initializes a
`WebWorkerPlayer`, with a web worker ready to play. The `params` must include the
`playerBuilder` function to execute on the web worker's environment.
The static ` create ( params ) ` method creates ( asynchronously ) and initializes a ` WebWorkerPlayer ` with a web worker ready to play . The ` params ` must include the ` playerBuilder ` function to execute on the web worker ' s environment .
function create(params) {
		var WebWorkerPlayer = this;
		return WebWorkerPlayer.createWorker(params).then(function (worker) {
			return new WebWorkerPlayer({name: name, worker: worker});
		});
	}
function create ( params ) { var WebWorkerPlayer = this ; return WebWorkerPlayer . createWorker ( params ) . then ( function ( worker ) { return new WebWorkerPlayer ( { name : name , worker : worker } ) ; } ) ; }
The static `create(params)` method creates (asynchronously) and initializes a
`WebWorkerPlayer`, with a web worker ready to play.
The static ` create ( params ) ` method creates ( asynchronously ) and initializes a ` WebWorkerPlayer ` with a web worker ready to play .