maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Solved/Request] QB mediaplyer widget. (https://talk.maemo.org/showthread.php?t=63546)

WhiteWolf 2010-10-09 23:56

Re: [Request] QB mediaplyer widget.
 
Do not make me any attention. I apologize but do not know much English.

I understood that you needed to do so but you were talking about doing it yourself.

Sorry for the confusion.

Dany-69 2010-10-17 21:13

Re: [Request] QB mediaplyer widget.
 
techie you're a god :D
Can i ask you ... how have you found the d-bus command of the media player command ? (because i suppose they work with dbus) ...
It could seem a stupid question to you ... but i would like to create some other QBW .. and even use this to create scripts and applications .. (just like an application that can easily use some physical buttons for the media player..)
Tnx bro :)

Dousan 2010-10-18 06:44

Re: [Request] QB mediaplyer widget.
 
@Dany-69 take a look at this post from No!No!No!Yes! ;)

http://talk.maemo.org/showpost.php?p...&postcount=738

techie 2010-10-18 08:43

Re: [Solved/Request] QB mediaplyer widget.
 
Updated post with play/pause.Please test and report back.

@Dany-69
Thanks for the nice words, much appreciated :), but I must confess that I am just a beginner learning to program.So all credits to the maemo community for making it easy and encouraging

Dousan 2010-10-18 09:24

Re: [Solved/Request] QB mediaplyer widget.
 
@techie works like a charm - play/pause now, cheers mate ;)

e: i've encountered 2 things now...

1. When rebooted i need to start the native player and stop it for the beecons to work.
2. The play/pause button doesn't work before next/previous is pressed after rebbot/nativeplayer is started/stoped.

Tried rebooting some 3 times still the same.

Did also try this with the old play/stop .txt and there it's only a start/stop in native player needed to make the qb's work and then they all work ;)

(today was the first time i've rebooted since i made mediaplayer qb buttons)

AgogData 2010-10-18 12:34

Re: [Solved/Request] QB mediaplyer widget.
 
Dousan, whats ur theme's name ? where did u get it ?

Dousan 2010-10-18 14:13

Re: [Solved/Request] QB mediaplyer widget.
 
Quote:

Originally Posted by AgogData (Post 844080)
Dousan, whats ur theme's name ? where did u get it ?

It's black pclastic theme dark blue by D-Livil with my own tweaks. It's in extras-devel both the black plastick themes and addon packs ;)

Wallpaper i got somewhere on the net...

Some of the tweaks i got from 'show off your maemo5 screenshots' and 'the truly epic mods' threads here on TMO ;)

techie 2010-10-18 18:31

Re: [Solved/Request] QB mediaplyer widget.
 
Quote:

Originally Posted by Dousan (Post 843972)
@techie works like a charm - play/pause now, cheers mate ;)

e: i've encountered 2 things now...

1. When rebooted i need to start the native player and stop it for the beecons to work.
2. The play/pause button doesn't work before next/previous is pressed after rebbot/nativeplayer is started/stoped.

Tried rebooting some 3 times still the same.

Did also try this with the old play/stop .txt and there it's only a start/stop in native player needed to make the qb's work and then they all work ;)

(today was the first time i've rebooted since i made mediaplayer qb buttons)

Yes I kinda expected that since it is independent of the status of media player.I am looking into it and just saw some hope for a fix.
Unfortunately no time to experiment with the idea I have right now.Will try later on and post if successful.

techie 2010-10-19 15:27

Re: [Solved/Request] QB mediaplyer widget.
 
3 Attachment(s)
I dug a bit deeper into the media player's working and created new widgets.Now all are inter-related, so you could hit play on the media player and be able to hit pause from the QBW widget!:cool:
Also play/pause and play/stop no longer need different widgets.The default action is play/pause, to change it to play/stop change the first line of play widget from
Code:

action="pause"
to
Code:

action="stop"
As for the not-working-after-reboot problem I found out the cause.The pointer that maintains track of currently selected song gets erased after reboot, so my widgets don't know what to play or what is the next/previous song.How the media player keeps track of this is beyond me so unfortunately no fix for this:( However it should now require only a single press of play/next/previous in the media player to make the widgets work again.

Set the size of widgets according to your preference and images.The images go in the usual queen beecon directory.

Edit:
All updated again for another fix.Sorry for the inconvenience:(
Enjoy:)

D4rKlar 2010-10-19 15:50

Re: [Solved/Request] QB mediaplyer widget.
 
Awesome work techie thank you!

I had trouble with the next/previous buttons too, so I just used the code from here

http://wiki.maemo.org/Phone_control#Media_player

And all seems fine now :D

I'm getting everything to show up on reboot by selecting 'update on startup'.

Kind Regards,
D4rKlar


All times are GMT. The time now is 08:50.

vBulletin® Version 3.8.8