run mainloop when starting player