home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
Watch / Listen Media
Pause-only action (no resume)
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="rsenden" data-source="post: 1180750" data-attributes="member: 24295"><p>Hi,</p><p></p><p>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.</p><p></p><p>This mostly works using the following set-up:</p><ol> <li data-xf-list-type="ol">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</li> <li data-xf-list-type="ol">On receiving this event, EventGhost displays an OSD message showing the event payload, and sends a MediaPortal Pause action to MediaPortal</li> </ol><p>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.</p><p></p><p>I've tried various approaches, but so far without any success:</p><ul> <li data-xf-list-type="ul">Use the 'Media is Playing' condition in the MessagePlugin configuration, but unfortunately this condition is apparently also true if media is paused</li> <li data-xf-list-type="ul">Send the <strong>APPCOMMAND_MEDIA_PAUSE</strong> command as described in this thread: <a href="https://forum.team-mediaportal.com/threads/emulate-any-multimedia-key-with-eventghost.35181/" target="_blank">https://forum.team-mediaportal.com/threads/emulate-any-multimedia-key-with-eventghost.35181/</a>. However MediaPortal doesn't seem to respond to this message</li> <li data-xf-list-type="ul">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.</li> </ul><p>Any ideas?</p></blockquote><p></p>
[QUOTE="rsenden, post: 1180750, member: 24295"] 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: [LIST=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 [*]On receiving this event, EventGhost displays an OSD message showing the event payload, and sends a MediaPortal Pause action to MediaPortal [/LIST] 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: [LIST] [*]Use the 'Media is Playing' condition in the MessagePlugin configuration, but unfortunately this condition is apparently also true if media is paused [*]Send the [B]APPCOMMAND_MEDIA_PAUSE[/B] command as described in this thread: [URL]https://forum.team-mediaportal.com/threads/emulate-any-multimedia-key-with-eventghost.35181/[/URL]. 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. [/LIST] Any ideas? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Watch / Listen Media
Pause-only action (no resume)
Contact us
RSS
Top
Bottom