Thread
:
jolla headset button start jolla-mediaplayer and play random music in background
View Single Post
smatkovi
2018-09-27 , 19:36
Posts: 169 | Thanked: 194 times | Joined on Apr 2012 @ Austria
#
3
i investigated a little and found out that the signal from the headset comes to the mpris section in the AudioPlayer.qml where also the function shuffleAndPlayAllAudio is located. the thing is ,it takes 2 arguments, model and some size, which both are only available in mediaplayer.qml, but how can i tell mediaplayer.qml from Audioplayer.qml to call the function shuffleAndPlayAllAudio? my idea was to send a signal from Audioplayer.qml, so i put in mpris section, which has the id mprisPlayer, signal mys and in onPlayRequested i put mprisPlayer.mys(). in mediaplayer.qml i changed onFinished to onMys and put the function to shuffle and play all audio there. but when i run jolla-mediaplayer it tells me cannot assign to non-existent property onMys
Quote & Reply
|
The Following 3 Users Say Thank You to smatkovi For This Useful Post:
carlosgonz
,
imaginaryenemy
,
juiceme
smatkovi
View Public Profile
Send a private message to smatkovi
Find all posts by smatkovi