index.js
function spawnPlayer (src, out, loop, initialVolume, showOsd) {

		let args = buildArgs(src, out, loop, initialVolume, showOsd);
		console.log('args for omxplayer:', args);
		let omxProcess = spawn('omxplayer', args);
		open = true;

		omxProcess.stdin.setEncoding('utf-8');
		omxProcess.on('close', updateStatus);

		omxProcess.on('error', () => {
			emitError('Problem running omxplayer, is it installed?.');
		});

		return omxProcess;

	}
function spawnPlayer (src, out, loop, initialVolume, showOsd) {

		let args = buildArgs(src, out, loop, initialVolume, showOsd);
		console.log('args for omxplayer:', args);
		let omxProcess = spawn('omxplayer', args);
		open = true;

		omxProcess.stdin.setEncoding('utf-8');
		omxProcess.on('close', updateStatus);

		omxProcess.on('error', () => {
			emitError('Problem running omxplayer, is it installed?.');
		});

		return omxProcess;

	}
function spawnPlayer ( src , out , loop , initialVolume , showOsd ) { let args = buildArgs ( src , out , loop , initialVolume , showOsd ) ; console . log ( 'args for omxplayer:' , args ) ; let omxProcess = spawn ( 'omxplayer' , args ) ; open = true ; omxProcess . stdin . setEncoding ( 'utf-8' ) ; omxProcess . on ( 'close' , updateStatus ) ; omxProcess . on ( 'error' , ( ) => { emitError ( 'Problem running omxplayer, is it installed?.' ) ; } ) ; return omxProcess ; }
Spawns the omxplayer process.
Spawns the omxplayer process .