Kodi Community Forum
[WINDOWS] External Player Support Thread - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Windows (https://forum.kodi.tv/forumdisplay.php?fid=59)
+---- Thread: [WINDOWS] External Player Support Thread (/showthread.php?tid=43511)



RE: [WINDOWS] External Player Support Thread - metfixxxer - 2023-12-18

(2023-12-17, 19:37)CrystalP Wrote: Well, is --fullscreen even accepted by mpc-hc64.
Run your command in a command prompt first. It's much easier that way to find your perfect combination of command line switches.
when i ran it with the first order - i got a pop-up with the original error message "unrecognized switches"

when i changed the order - i got nothing. no pop-up box with error, nothing. it sort of just flashed, then nothing


RE: [WINDOWS] External Player Support Thread - CrystalP - 2023-12-18

There you go, fix the mpc-hc64 command line first, then integrate it in the playerfactory.

This is not a support forum for mpc-hc64, I don't have it installed and won't go any further than this, but a few posts higher than your first, there is a playerfactory using /fullscreen.


RE: [WINDOWS] External Player Support Thread - 647830 - 2024-01-09

Hello,
Hope this is the right place to post my question. I am currently using MPC-BE as external player with Kodi (20.2), but the netflix addon (https://github.com/CastagnaIT/plugin.video.netflix) does not work: "can't play the file".
I would like to adjust the playercorefactory file so that the netflix addon uses the internal player, while for other files it keeps using MPC-BE.
I don't know the nature of the files/stream to be read for the Netflix addon, but have seen somewhere it would be ".*strm.*" (but not sure of it).
This is obviously for use with a paid subscription to Netflix.
Could someone please provide assistance on how to adjust the playercorefactory to achieve this?
Many thanks


RE: [WINDOWS] External Player Support Thread - Mibuix0r - 2024-03-01

Is there still no way to set a key to play using an external player?  I tried this but doesn't seem to work heh:

<keymap>
  <global>
    <keyboard>
      <p>PlayWith(MPC-HC)</p>

It does look like its possible though https://kodi.wiki/view/Keymap#Player_built-in's


RE: [WINDOWS] External Player Support Thread - ashlar - 2024-03-01

(2024-03-01, 12:56)Mibuix0r Wrote: Is there still no way to set a key to play using an external player?  I tried this but doesn't seem to work heh:

<keymap>
  <global>
    <keyboard>
      <p>PlayWith(MPC-HC)</p>

It does look like its possible though https://kodi.wiki/view/Keymap#Player_built-in's
When speaking about player core, I think the wiki refers to the two main players in Kodi, for video and audio, not to external players that, by definition, are not core.

You might want to have a look at the SwitchPlayer functionality, in order to maybe combine that command with a normal play command (don't know if it's possible but I suppose it should be somehow).


RE: [WINDOWS] External Player Support Thread - Mibuix0r - 2024-03-01

(2024-03-01, 18:27)ashlar Wrote:
(2024-03-01, 12:56)Mibuix0r Wrote: Is there still no way to set a key to play using an external player?  I tried this but doesn't seem to work heh:

<keymap>
  <global>
    <keyboard>
      <p>PlayWith(MPC-HC)</p>

It does look like its possible though https://kodi.wiki/view/Keymap#Player_built-in's
When speaking about player core, I think the wiki refers to the two main players in Kodi, for video and audio, not to external players that, by definition, are not core.

You might want to have a look at the SwitchPlayer functionality, in order to maybe combine that command with a normal play command (don't know if it's possible but I suppose it should be somehow).
Ahh, so there is no way to do it?  If you could just use a key to bring up that Play Using... menu that would work too.  Mine almost always crashes when doing the Switchplayer thing on 4k hdr movies, and that is when I need it most.  Maybe I can reorder the context menu for it to be at the top.  It takes quite a bit of time to do now.


RE: [WINDOWS] External Player Support Thread - ashlar - 2024-03-01

(2024-03-01, 18:33)Mibuix0r Wrote:
(2024-03-01, 18:27)ashlar Wrote:
(2024-03-01, 12:56)Mibuix0r Wrote: Is there still no way to set a key to play using an external player?  I tried this but doesn't seem to work heh:

<keymap>
  <global>
    <keyboard>
      <p>PlayWith(MPC-HC)</p>

It does look like its possible though https://kodi.wiki/view/Keymap#Player_built-in's
When speaking about player core, I think the wiki refers to the two main players in Kodi, for video and audio, not to external players that, by definition, are not core.

You might want to have a look at the SwitchPlayer functionality, in order to maybe combine that command with a normal play command (don't know if it's possible but I suppose it should be somehow).
Ahh, so there is no way to do it?  If you could just use a key to bring up that Play Using... menu that would work too.  Mine almost always crashes when doing the Switchplayer thing on 4k hdr movies, and that is when I need it most.  Maybe I can reorder the context menu for it to be at the top.  It takes quite a bit of time to do now.
The Play using... submenu is a window of some sort, I suppose there should definitely be a way to call that.


RE: [WINDOWS] External Player Support Thread - Mibuix0r - 2024-03-01

(2024-03-01, 18:35)ashlar Wrote:
(2024-03-01, 18:33)Mibuix0r Wrote:
(2024-03-01, 18:27)ashlar Wrote: When speaking about player core, I think the wiki refers to the two main players in Kodi, for video and audio, not to external players that, by definition, are not core.

You might want to have a look at the SwitchPlayer functionality, in order to maybe combine that command with a normal play command (don't know if it's possible but I suppose it should be somehow).
Ahh, so there is no way to do it?  If you could just use a key to bring up that Play Using... menu that would work too.  Mine almost always crashes when doing the Switchplayer thing on 4k hdr movies, and that is when I need it most.  Maybe I can reorder the context menu for it to be at the top.  It takes quite a bit of time to do now.
The Play using... submenu is a window of some sort, I suppose there should definitely be a way to call that.

hmm does this help? https://imgur.com/a/or92iyb


RE: [WINDOWS] External Player Support Thread - izprtxqkft - 2024-03-01

(2024-03-01, 18:33)Mibuix0r Wrote: thing on 4k hdr movies, and that is when I need it most.

would it not be more acceptable to make this process automatic?

look at https://kodi.wiki/view/External_players

if you use rules like in the example you can make certain content play external only

f.e.

Code:
  <rules action="prepend">
    <rule filetypes="mkv" filename=".*2160p.*" player="MPC-HC"/>
  </rules>

but if not, no i do not know how to call a specific external player from the keymap


RE: [WINDOWS] External Player Support Thread - Mibuix0r - 2024-03-01

(2024-03-01, 18:53)izprtxqkft Wrote:
(2024-03-01, 18:33)Mibuix0r Wrote: thing on 4k hdr movies, and that is when I need it most.

would it not be more acceptable to make this process automatic?

look at https://kodi.wiki/view/External_players

if you use rules like in the example you can make certain content play external only

f.e.
 
Code:
  <rules action="prepend">
    <rule filetypes="mkv" filename=".*2160p.*" player="MPC-HC"/>
  </rules>

but if not, no i do not know how to call a specific external player from the keymap

I would really like to be able to choose with each on. I know I can set the rules but it I prefer to do it manually.


RE: [WINDOWS] External Player Support Thread - ashlar - 2024-03-01

(2024-03-01, 18:35)ashlar Wrote:
(2024-03-01, 18:33)Mibuix0r Wrote:
(2024-03-01, 18:27)ashlar Wrote: When speaking about player core, I think the wiki refers to the two main players in Kodi, for video and audio, not to external players that, by definition, are not core.

You might want to have a look at the SwitchPlayer functionality, in order to maybe combine that command with a normal play command (don't know if it's possible but I suppose it should be somehow).
Ahh, so there is no way to do it?  If you could just use a key to bring up that Play Using... menu that would work too.  Mine almost always crashes when doing the Switchplayer thing on 4k hdr movies, and that is when I need it most.  Maybe I can reorder the context menu for it to be at the top.  It takes quite a bit of time to do now.
The Play using... submenu is a window of some sort, I suppose there should definitely be a way to call that.
So you could use the ActivateWindowAndFocus built in command in your keymap.xml file


ActivateWindowAndFocus(10106,id2,item1, id3,item2) as seen here: https://kodi.wiki/view/List_of_built-in_functions#GUI_built-in's

10106 is Contextual Menu. How to focus on playusing, etc... it's down to experimenting with the other parameters, which I don't know how to use. If you could combine two actions or more, you could open the contextual menu, focused on Play using... and then maybe have the OK press simulated in order to access the list of players with just one button.


RE: [WINDOWS] External Player Support Thread - ashlar - 2024-03-01

You could also give a look at this post of mine. It's not doing the same thing you're trying to achieve, but it's similar enough that maybe there's a similar approach available for you.

https://forum.kodi.tv/showthread.php?tid=373237&pid=3155625#pid3155625

Note the use of script. I have a selectsubs.py script with the content listed in the above post, and I map the function with

Code:
<f9>RunScript(C:\tools\SelectSubs.py)</f9>

in my keymap.xml

For you it could be:
Code:
import xbmc, xbmcgui

#sequence of actions

xbmc.executebuiltin('ActivateWindow(contextmenu)')
xbmc.executebuiltin('Action(down)')
xbmc.executebuiltin('Action(select)')
To enter the window where you select the player to use (this for my skin, you obviously have to adapt to what you're actually seeing in the menus). According to how you have your players set up, you could add extra action to automate moving to the correct player in the list and then selecting it. At that point, with a single button press, you could have your "Play with MPC-HC" command.


RE: [WINDOWS] External Player Support Thread - Mibuix0r - 2024-03-01

(2024-03-01, 19:00)ashlar Wrote:
(2024-03-01, 18:35)ashlar Wrote:
(2024-03-01, 18:33)Mibuix0r Wrote: Ahh, so there is no way to do it?  If you could just use a key to bring up that Play Using... menu that would work too.  Mine almost always crashes when doing the Switchplayer thing on 4k hdr movies, and that is when I need it most.  Maybe I can reorder the context menu for it to be at the top.  It takes quite a bit of time to do now.
The Play using... submenu is a window of some sort, I suppose there should definitely be a way to call that.
So you could use the ActivateWindowAndFocus built in command in your keymap.xml file


ActivateWindowAndFocus(10106,id2,item1, id3,item2) as seen here: https://kodi.wiki/view/List_of_built-in_functions#GUI_built-in's

10106 is Contextual Menu. How to focus on playusing, etc... it's down to experimenting with the other parameters, which I don't know how to use. If you could combine two actions or more, you could open the contextual menu, focused on Play using... and then maybe have the OK press simulated in order to access the list of players with just one button.
Heh, well when I set it to open the context menu with ActivateWindow or ActivateWindowAndFocus I get a mostly blank context menu https://imgur.com/a/tWyWtlC


RE: [WINDOWS] External Player Support Thread - ashlar - 2024-03-01

(2024-03-01, 19:20)Mibuix0r Wrote:
(2024-03-01, 19:00)ashlar Wrote:
(2024-03-01, 18:35)ashlar Wrote: The Play using... submenu is a window of some sort, I suppose there should definitely be a way to call that.
So you could use the ActivateWindowAndFocus built in command in your keymap.xml file


ActivateWindowAndFocus(10106,id2,item1, id3,item2) as seen here: https://kodi.wiki/view/List_of_built-in_functions#GUI_built-in's

10106 is Contextual Menu. How to focus on playusing, etc... it's down to experimenting with the other parameters, which I don't know how to use. If you could combine two actions or more, you could open the contextual menu, focused on Play using... and then maybe have the OK press simulated in order to access the list of players with just one button.
Heh, well when I set it to open the context menu with ActivateWindow or ActivateWindowAndFocus I get a mostly blank context menu https://imgur.com/a/tWyWtlC
Have you tried with default skin? Just to check.


RE: [WINDOWS] External Player Support Thread - Mibuix0r - 2024-03-01

(2024-03-01, 19:46)ashlar Wrote:
(2024-03-01, 19:20)Mibuix0r Wrote:
(2024-03-01, 19:00)ashlar Wrote: So you could use the ActivateWindowAndFocus built in command in your keymap.xml file


ActivateWindowAndFocus(10106,id2,item1, id3,item2) as seen here: https://kodi.wiki/view/List_of_built-in_functions#GUI_built-in's

10106 is Contextual Menu. How to focus on playusing, etc... it's down to experimenting with the other parameters, which I don't know how to use. If you could combine two actions or more, you could open the contextual menu, focused on Play using... and then maybe have the OK press simulated in order to access the list of players with just one button.
Heh, well when I set it to open the context menu with ActivateWindow or ActivateWindowAndFocus I get a mostly blank context menu https://imgur.com/a/tWyWtlC
Have you tried with default skin? Just to check.
So I got it to enter the Context Menu but I don't know if this is going to work.  It seems some have more items in the context menu (like if it has to option to resume) and even ones that seem alike it sometimes doesn't go down the right amount of steps.

Code:
import xbmc, xbmcgui

#sequence of actions

xbmc.executebuiltin('Action(ContextMenu)')
xbmc.executebuiltin('Action(down)')
xbmc.executebuiltin('Action(down)')
xbmc.executebuiltin('Action(down)')
xbmc.executebuiltin('Action(down)')
xbmc.executebuiltin('Action(down)')
xbmc.executebuiltin('Action(down)')
xbmc.executebuiltin('Action(down)')
xbmc.executebuiltin('Action(down)')
xbmc.executebuiltin('Action(down)')
xbmc.executebuiltin('Action(down)')
#xbmc.executebuiltin('Action(select)')