Pause-only action (no resume) (1 Viewer)

rsenden

Portal Pro
August 22, 2006
88
108
Rotterdam, NL
Netherlands Netherlands
Hi,

Running MediaPortal v1.13.0.0, EventGhost and Asterisk, I would like to automatically pause any playing media in MediaPortal and display an OSD message with the caller id whenever a call is received by Asterisk.

This mostly works using the following set-up:
  1. Asterisk contains a TrySystem action to invoke cUrl to send a 'pauseWithMessage' request to the EventGhost webserver plugin, containing the callerid message as event payload
  2. On receiving this event, EventGhost displays an OSD message showing the event payload, and sends a MediaPortal Pause action to MediaPortal
The problem is that the MediaPortal Pause action is a toggle event. If the media is already paused (due to an earlier call or paused manually), the media will resume playing. So, I'm looking for some way to have EventGhost tell MediaPortal to pause any playing media, but not to resume any paused media.

I've tried various approaches, but so far without any success:
  • Use the 'Media is Playing' condition in the MessagePlugin configuration, but unfortunately this condition is apparently also true if media is paused
  • Send the APPCOMMAND_MEDIA_PAUSE command as described in this thread: https://forum.team-mediaportal.com/threads/emulate-any-multimedia-key-with-eventghost.35181/. However MediaPortal doesn't seem to respond to this message
  • Send the 'p' keystroke to MediaPortal. According to some older threads, 'p' will only pause media, whereas the space bar acts as a pause/play toggle. However the 'p' keystroke (even when typed manually) doesn't do anything on my MediaPortal instance, so maybe this has been removed in recent versions.
Any ideas?
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

OP Similar threads Forum Replies Date
ajs [fixed] 5029: Add the ability to choose the type of pause for designers in the slideshow MediaPortal 1 4
Glith Audio out of sync after pause. Rewind 15sec gets it into sync again. MediaPortal 1 Talk 0
stirlinghart [no Bug] Video glitches after pausing/rewinding/fastfording movies - tv is ok 2.2 Archive 4
S Pause button no longer works with MadVR in 1.19 General Support 4
T Pause a recording possible? MediaPortal 1 Talk 0
S Pause and Play do not work with remote General 6
B pls help. tv stops playing but resumes if I push pause and play General 0
gibman changing TV ch. causes black screen pause. Archive 1
D Mapping stop, pause etc in translator IR Server Suite (IRSS) 2
S Mini Display MP 1.24 no Volume OSD no action for keys Mini Display 0
F Error invoking action 'GetNowNextProgramForGroup' Submit: Bug Reports 3
joecool70 Fehlermeldung Error invoking action "Start Timeshift" Allgemeines Support- und Diskussionsforum 1
W [solved] "Error invoking action StarTimeshift" General 4
LeeKelly Error parsing action result document and error starttimeshift General 2
N [Finished] It is possible to map the same key to the same action twice MediaPortal 2 2
N [Finished] [MP2-783] Mapping Ctrl+Right as Next also does Right action when pressed. MediaPortal 2 21
D [solved] Map "media keys" on HID device to MP2 actions? General 17
joecrow 1.25.0 Radio Time plugin fails after Resume from Sleep with MP 1.25 Bugreports 3
F After resume, TV Server connection screen is shown General Support 4
Dark Eyes TVService locks up or fails to restart on resuming from sleep, and crashes when grabbing EPG Installation, configuration support 7
P MP2 Client Screen Flickering on Resume General 2
HTPCSourcer [fixed] [MP2-815] User not logged in when resuming from standby MediaPortal 2 17
J Resume from Standby Last Module TV Showing TV Server Settings Television (MyTV frontend and TV-Server) 2
R Media portal resumes with wrong screen resolution General Support 3
B resume from within a folder Watch / Listen Media 0
Similar threads

























Top Bottom