Help setup external player
#1
Sad 
Before I get hammered and re-directed, I went here http://wiki.xbmc.org/index.php?title=External_players

I put this code, edited mpc-hc to my directory so it looks as so and removed the rules tag:
playercorefactory.xml
Code:
<playercorefactory>
<players>
   <player name="MPC-HC" type="ExternalPlayer" audio="false" video="true">
     <filename>C:\Program Files (x86)\K-Lite Codec Pack\Media Player Classic\mpc-hc.exe</filename>
     <args>"{1}" /fullscreen /close</args>
     <hidexbmc>false</hidexbmc>
     <hideconsole>false</hideconsole>
     <warpcursor>none</warpcursor>
   </player>
</players>
</playercorefactory>

I put it in C:\Users\Bryan\AppData\Roaming\XBMC\userdata

Whenever I put a movie on it still uses xbmc. The reason I want to setup an external player is because I use the neon skin on multiplex; it is by far my favorite skin and I do not wish to use any others. However, I can't get the seekbar going and since I will only be having a mouse in hand when streaming to my tv, this feature is very important. On neon if I pause the skin there is a seek bar on the bottom, but when you hover over it/try clicking it, it dissapears. Unless here is an add-on I can install to make these seek bars work, than i would like to use mpc as my default player.

Can you guys point me in the right direction, what am I doing wrong or is there a fix/addon to this issue on this skin.

This is it unpaused: Image

This is it paused: Image

======================

Also from this post http://forum.xbmc.org/showthread.php?tid...#pid933886


hjsrennie posted this

"%appdata%\xbmc\userdata\keymaps\mouse.xml"

Code:
<keymap>
  <global>
    <mouse>
      <doubleclick>ToggleFullScreen</doubleclick>
    </mouse>
  </global>
  <fullscreenvideo>
    <mouse>
      <leftclick>pause</leftclick>
      <mousemove>noop</mousemove>
    </mouse>
  </fullscreenvideo>
</keymap>

Can someone edit it so 1 click = pause and 1 click = play w/o the togglefullscreen
Reply
#2
You can't click in the progress bar. XBMC was mostly made for the xbox. People using controllers and remotes and stuff.
But why not just put the skip function on the middle mouse button if you have one? Skips like 30 sec.
You can even keep it pressed in to get bigger skips.

Code:
<keymap>
   <fullscreenvideo>
        <mouse>
            <middleclick>StepForward</middleclick>
          </mouse>
     </fullscreenvideo>
</keymap>

Sorry no help on external player from me, never tried.
Image [RELEASE] Metroid
Image [RELEASE] IrcChat
Reply
#3
hmmmm smart man!!!!!!!!! BTW holding down middle mouse does not get bigger skips, you have to keep pressing it.

Here Is this code... Almost there!
Left click = Pause/Play
Middle Scroll Up = 2 minutes forward ( by default)
Middle Scroll Back = 2 minutes Back ( by default)
Code:
<keymap>
  <fullscreenvideo>
    <mouse>
      <leftclick>play</leftclick>
      <middleclick>StepForward</middleclick>
    </mouse>
  </fullscreenvideo>
  <mousemove>noop</mousemove>
</keymap>
Reply
#4
I got the info for middle mouse from here:
http://forum.xbmc.org/showthread.php?tid=119194
And here:
https://github.com/xbmc/xbmc/blob/master.../mouse.xml
As you can see that last link pretty much lists them all.
Put it in a "mouse.xml" file.

If you use <fullscreenvideo> instead of <global> you can give the button a different function in a different screen.
Like on the home menu <Home> you could make middle click take you to the library without affecting its function during playback as skip.

Code:
<keymap>
  <fullscreenvideo>
    <mouse>
      <middleclick>StepForward</middleclick>
    </mouse>
  </fullscreenvideo>
  <Home>
     <mouse>
      <middleclick>ActivateWindow(MyVideos,Movies)</middleclick>
    </mouse>
  </Home>
</keymap>
ect

And loads of commands to send here:
http://wiki.xbmc.org/index.php?title=Keyboard.xml
So that big skip you wanted is in this link above, it's called "BigStepForward" for example (without " quotes).
http://wiki.xbmc.org/index.php?title=Cat...om_keymaps
http://wiki.xbmc.org/index.php?title=HOW...yboard.xml
Image [RELEASE] Metroid
Image [RELEASE] IrcChat
Reply
#5
Also <mousemove>noop</mousemove> seems to not be working properly. It still brings up the menu on move while playing a video.
WOW that middle click code works very nicely, if now you can make it go to Title! I tried ActivateWindow(MyVideos,Movies,Title) and it was a no go.
Also if possile I want to setup Select to be global except for fullscreenvideo ofc.

I am still seeking how to setup an external player though as well. But if this code gets completed, there will be no need.

PS. This is a nice reference
http://wiki.xbmc.org/index.php?title=Keyboard
http://wiki.xbmc.org/index.php?title=Keyboard.xml

Ps2. Great github mouse.xml reference mate since there is none in the wiki!

Here is the code now!
Code:
<keymap>
  <fullscreenvideo>
    <mouse>
      <leftclick>play</leftclick>
      <middleclick>StepForward</middleclick>
    </mouse>
  </fullscreenvideo>
  <Home>
     <mouse>
      <middleclick>ActivateWindow(MyVideos,Movies,Title)</middleclick>
      <leftclick>Select</leftclick>
    </mouse>
  </Home>
  <mousemove>noop</mousemove>
</keymap>
Reply
#6
(2012-07-29, 21:37)Wicked123 Wrote: Before I get hammered and re-directed, I went here http://wiki.xbmc.org/index.php?title=External_players

I put this code, edited mpc-hc to my directory so it looks as so and removed the rules tag:
playercorefactory.xml
Code:
<playercorefactory>
<players>
   <player name="MPC-HC" type="ExternalPlayer" audio="false" video="true">
     <filename>C:\Program Files (x86)\K-Lite Codec Pack\Media Player Classic\mpc-hc.exe</filename>
     <args>"{1}" /fullscreen /close</args>
     <hidexbmc>false</hidexbmc>
     <hideconsole>false</hideconsole>
     <warpcursor>none</warpcursor>
   </player>
</players>
</playercorefactory>

I put it in C:\Users\Bryan\AppData\Roaming\XBMC\userdata

Whenever I put a movie on it still uses xbmc. The reason I want to setup an external player is because I use the neon skin on multiplex;
If you want MPC-HC to playback everything, you can use the codes below-

Code:
<playercorefactory>
<players>
   <player name="MPC-HC" type="ExternalPlayer" audio="false" video="true">
     <filename>C:\Program Files (x86)\K-Lite Codec Pack\Media Player Classic\mpc-hc.exe</filename>
     <args>"{1}" /fullscreen /close</args>
     <hidexbmc>false</hidexbmc>
     <hideconsole>false</hideconsole>
     <warpcursor>none</warpcursor>
   </player>
</players>
      <rules action="prepend">
      <rule  filetypes="*.*" player="MPC-HC"/>
</rules>
</playercorefactory>

>Alienware X51- do it all HTPC
>Simplify XBMC configurations
>HOW-TO Bitstreaming using XBMC
I refused to watch movie without bitstreaming HD audio!
Reply
#7
Actually, on most skins you can now click on the seek bar to jump as of XBMC v11.
Reply
#8
lol, oh haha. Didn't know i could now click the seek bar. Guess i havent tried because it never worked before. Also, i'm on reFocus/reAlaska so i don't have a seek bar on mouse move.

I don't know what you mean by "title" though? (Don't look at the xbox commands) Maybe:
Code:
<middleclick>Info</middleclick>
<middleclick>OSD</middleclick>

Look up the normal keyboard button that preforms that action (for example the button M ) We can see it preforms "Player controls (OSD)".
http://wiki.xbmc.org/index.php?title=Keyboard
And here we can see that "OSD" is the actual command:
http://wiki.xbmc.org/index.php?title=Keyboard.xml

Leftclick should be Select as default on global. So you just need to set a different action in <fullscreenvideo>. The global will stay Select.
Image [RELEASE] Metroid
Image [RELEASE] IrcChat
Reply
#9
bluray great jumpin' jiminy crickets, it works. Thanks for all the help you have provided. After trying this out I can't leave the xbmc player due to it's beauty but your code really does work and it will help those people using the search feature on the forums.

MassIV, Now that you mention OSD, I did not know what it's called but now I do. All this time I was trying to disable mouse move to stop the OSD. When the OSD on Neon skin pops out, it stops the mouse key controls we setup on mouse.xml
I guess that is the reason the other guy in that post from 2011 was trying to do the same.

So either Disable OSD or Disable mouse move would work. I think this script would be complete if this can be done.


Edit: What do I mean by title?

If you middle click with your code, you will be taken here: Image
Reply

Logout Mark Read Team Forum Stats Members Help
Help setup external player0