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
MediaPortal 1 Plugins
Controlling the player within MP ....
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="hagur" data-source="post: 19293" data-attributes="member: 10373"><p>Hi,</p><p></p><p>I'm developing a process plugin for Media Portal which provides remote control capabilities via HTTP.</p><p></p><p>I'm having problems performing the basic playback functions, like play, pause, stop, next, prev etc. etc.</p><p></p><p>The code I'm using is something í "stole" from the MCERemote plugin which is a part of the Media Portal project. But ... the code has been disabled, like it's no longer in use.</p><p></p><p>Here's an example of what I'm doing, but I get no response from MP.</p><p></p><p>[code]</p><p> case "play" :</p><p> action = new Action(Action.ActionType.ACTION_PLAY,0,0);</p><p> break;</p><p> </p><p> case "pause" :</p><p> action = new Action(Action.ActionType.ACTION_PAUSE,0,0);</p><p> break;</p><p>[/code]</p><p></p><p>I've tried all the available actions available in the ActionType class, but</p><p>it seems as if this action syntax is no longer working at all.</p><p></p><p>How can I pass those commands to MP from within my plugin ?</p><p></p><p>BTW, sending dialog commands works perfectly, such as:</p><p></p><p>[code]</p><p>GUIMessage msgHome = new GUIMessage(GUIMessage.MessageType.GUI_MSG_GOTO_WINDOW,0,0,0,(int)GUIWindow.Window.WINDOW_HOME,0,null);</p><p>GUIWindowManager.SendThreadMessage(msgHome);</p><p>[/code]</p></blockquote><p></p>
[QUOTE="hagur, post: 19293, member: 10373"] Hi, I'm developing a process plugin for Media Portal which provides remote control capabilities via HTTP. I'm having problems performing the basic playback functions, like play, pause, stop, next, prev etc. etc. The code I'm using is something í "stole" from the MCERemote plugin which is a part of the Media Portal project. But ... the code has been disabled, like it's no longer in use. Here's an example of what I'm doing, but I get no response from MP. [code] case "play" : action = new Action(Action.ActionType.ACTION_PLAY,0,0); break; case "pause" : action = new Action(Action.ActionType.ACTION_PAUSE,0,0); break; [/code] I've tried all the available actions available in the ActionType class, but it seems as if this action syntax is no longer working at all. How can I pass those commands to MP from within my plugin ? BTW, sending dialog commands works perfectly, such as: [code] GUIMessage msgHome = new GUIMessage(GUIMessage.MessageType.GUI_MSG_GOTO_WINDOW,0,0,0,(int)GUIWindow.Window.WINDOW_HOME,0,null); GUIWindowManager.SendThreadMessage(msgHome); [/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Controlling the player within MP ....
Contact us
RSS
Top
Bottom