code: async function main() {
  	const con = await kodi('127.0.0.1', 9090);
  
  	/* Stop all players, then start the video */
  	await stopAllActivePlayers(con);
  	await con.Player.Open({
  		item: {
  			file: url
  		}
  	});
  
  	/* Stop the video after 20 seconds */
  	await sleep(20000);
  	await stopAllActivePlayers(con);
  }
docs: /* Main logic