View Single Post
Posts: 149 | Thanked: 184 times | Joined on Apr 2012 @ Austria
like the title says i would like to have the function the n900 had back then to press the headsetbutton and then it would start the mediaplayer and play random music. i tried it for myself and as far as i got i also reported here i could get the mediaplayer to start playing music automatically, but it only would do this when the app gets into foreground and scanning of the library finished but not in the background, because i put the function or whatever in onFinished section of one qml and it waited for the gui to finish. now the question is how to get this scanning to be triggered in the background and then playing music is trivial^^. i managed to do this if i put the function or whatever outside the onFinished section, but it then strangely would only play one song. thanks in advance for any suggestions

The Following 2 Users Say Thank You to smatkovi For This Useful Post: