Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

toggle play pause in media portal??

If you have a question or need help, this is the place to be.
Post Reply
yakovyarmo
Posts: 18
Joined: Mon Jul 27, 2009 12:01 am

toggle play pause in media portal??

Post by yakovyarmo »

i want to use the same button for toggling play and pause ( of course depends on the movie situation , paused or not ).
how can i do it??
yakovyarmo
Posts: 18
Joined: Mon Jul 27, 2009 12:01 am

Re: toggle play pause in media portal??

Post by yakovyarmo »

any one knows??
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: toggle play pause in media portal??

Post by jonib »

You could try something like this:
EvenGhostPlayToggle.PNG
EvenGhostPlayToggle.PNG (9.69 KiB) Viewed 2852 times
It will toggle between Play and Pause.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
yakovyarmo
Posts: 18
Joined: Mon Jul 27, 2009 12:01 am

Re: toggle play pause in media portal??

Post by yakovyarmo »

but if it is already playing or in pause mode??
now i do it simply by emulating the space key stroke.
isn't there any other elegant way???
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: toggle play pause in media portal??

Post by jonib »

yakovyarmo wrote:but if it is already playing or in pause mode??
What happens if you press pause when it is paused?
now i do it simply by emulating the space key stroke.
If it works by sending space, why do you what to change it?
isn't there any other elegant way???
I have not used Media portal so I don't know if there is a more elegant way, sorry.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
User avatar
jitterjames
Experienced User
Posts: 677
Joined: Thu Aug 13, 2009 4:36 pm
Location: Quebec, Canada
Contact:

Re: toggle play pause in media portal??

Post by jitterjames »

yes, I think you can do this by configuring the message plugin in media portal. Keep the setup in eventghost as it is.

i.e when you press play send the play command and when you press pause send the pause command.

go to mediaportal configuration then in process plugins you can select the message plugin and then click configure.

You will see a tree. OPen the Microsoft MCE remote branch. Then open the Pause branch.
You will see that it allready has 2 actions. One is conditional if the slideshow is running.
You want one action that performs a pause on the condition that video (or music is playing) and one action that performs Play on the condition that you are paused.

Click on the words "No Condition" under "Slideshow" then click the button near the bottom labeled "New". You should now have 2 branches labeled "no Condition". On the right sidepanel you can set the conditions and actions for each.

under condition click "playing" radio button then select "media is playing" from the drop down. This one should have the "Pause" action.

hmmm they don't seem to have a specific condition "media is not playing", but maybe you can figure something out.

btw I have been using space for this toggle pause function and never had a problem, but I HAVE had problems using other keys because they are case sensitive and CAPSLOCK can screw you up.

J
Post Reply