Nowplaying on TT and controlling dvds

Help each other out

Nowplaying on TT and controlling dvds

Postby bmblank on Sat Sep 30, 2006 11:01 pm

I have a question about movies and buttons pertaining to them...

We have one TT running and one of the things that's annoying is when you play a movie and then you turn off your ppc or something. When reconnecting if you go to "Play movie" again it will re-open theatertek. I've gotten around this (kinda) with a button that will bring you straight to the ppc_movie_ctrls screen foregoing the starting of theatertek. What I'd like though is when you hit the play button, if nothing is playing it will play the dvd, but if something is already playing then it will simply bring up the ppc_movie_ctrls.
My question is this: Is there some sort of command line that would change where the button goes depending on TT? Such as if theatertek is running or one of the things I thought of was something like IF nowplaying>0 or some crap like that.
This way also if someone was watching a movie, it wouldn't be interupted by somebody in another room trying to watch a different movie or something. It would just say "movie already in progress" and bring it to movie controls. Hopefully this works out pretty good. If not I guess I'd be happy with a "now playing" for dvds that I'd put on the all movies page so you can tell if you should just go to controls or if you should start a movie. Thanks, seeya.

Ben
bmblank
 
Posts: 233
Joined: Fri Jun 30, 2006 12:55 pm

Postby S Pittaway on Sun Oct 01, 2006 9:00 am

you can, but its in plugin teritory...


i have a combined pause/play button, which checks the state of winamp and acts accordingly (also sets the button text to match).

i also remap music.prev to restart the current song (single click) or go to the prev track(s) (double or multiple presses).


both are very easy to do in a plugin (just a few lines of code) but i dont know how to do in in "straight" xlobby.
S Pittaway
 
Posts: 651
Joined: Wed Jan 25, 2006 11:08 am
Location: Manchester, England

Postby timwarner on Mon Oct 02, 2006 8:25 pm

Which plugin?

I would love to be able to tweak buttons with single click / double click function.

I didn't realise it was possible.

Please share.

Tim
timwarner
 
Posts: 58
Joined: Thu Feb 17, 2005 9:56 pm
Location: UK

Postby S Pittaway on Tue Oct 03, 2006 6:25 am

its one i have tailored to my own needs....


i can give you a bit of code to do it if you want? but the plugin isent much use to anyone else.
S Pittaway
 
Posts: 651
Joined: Wed Jan 25, 2006 11:08 am
Location: Manchester, England

Yes please

Postby timwarner on Tue Oct 03, 2006 3:05 pm

I would like to give it a go. If you could send me the code my email address is timwarner AT f2s.com

Thanks

Tim
timwarner
 
Posts: 58
Joined: Thu Feb 17, 2005 9:56 pm
Location: UK

Postby S Pittaway on Wed Oct 04, 2006 6:32 am

it doesnt do double clicks, it simply treats a single press as prev track, and if another press is sent within 500ms it does a play to restart the track... ie it first does one thing then another, not really a double click...

on the play/pause front i save the button name to a variable and display that on the play button, in the background i check the play state of winamp and set the variables text accordingly.

If that still sounds usefull i can pair my plugin down and send you it?
S Pittaway
 
Posts: 651
Joined: Wed Jan 25, 2006 11:08 am
Location: Manchester, England

Both Sound interesting

Postby timwarner on Wed Oct 04, 2006 7:31 pm

If it is not too much trouble. The idea of if button is pressed twice within 500ms could be very useful. I can't think exactly for what right now but it is something I wanted to be able to do. It is always nice to have something new to try. Thanks
Tim
timwarner
 
Posts: 58
Joined: Thu Feb 17, 2005 9:56 pm
Location: UK