Kodi Community Forum
Win Play Using... Not in Context menu - 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: Win Play Using... Not in Context menu (/showthread.php?tid=377526)



Play Using... Not in Context menu - BrunoJ - 2024-05-14

I'm attempting to add the "Play Using..." selection to video context menus, but have had little success.  I'm using Kodi V21.0 on Windows 10.  Despite what I've read elsewhere, the playcorefactory.xml file only works if placed in the %APPDATA%\kodi\userdata directory. Any suggestions would be appreciated. 

Here is the content of my file:

<?xml version="1.0" encoding="UTF-8"?>
<!--
# Goes in directory %APPDATA%\kodi\userdata
-->
<playercorefactory>

  <players>
    <player name="VLC" type="ExternalPlayer" audio="false" video="true">
        <filename>C:\Program Files\VideoLAN\VLC\vlc.exe</filename>
        <args>--fullscreen "{1}"</args>
        <hidexbmc>false</hidexbmc>
        <hideconsole>false</hideconsole>
   </player>
    <player name="VideoPlayer" type="videodefaultplayer" audio="true" video="true"></player>
  </players>
  <rules action="prepend">
<!--
    # Using this rule does open all videos in VLC. So, the xml file is being read correctly.
    <rule video="true" player="VLC"/>
-->
  </rules>
</playercorefactory>


RE: Play Using... Not in Context menu - PatK - 2024-05-14

Looks like everything is working correctly and all videos are using VLC as per playercorefactory rules. External players (wiki) to get the 'play using' in the context menu, you would have define other players which would include the native Kodi player. Have a look at the support thread for more ideas https://forum.kodi.tv/showthread.php?tid=43511


RE: Play Using... Not in Context menu - BrunoJ - 2024-05-16

Thanks for pointing me toward the support thread.  It's going to take a while for me to digest 110 pages.


RE: Play Using... Not in Context menu - CrystalP - 2024-05-16

Look at the wiki article. You defined a rule that unconditionally plays everything with VLC, exactly like the comment in your file says.


RE: Play Using... Not in Context menu - otinley - 2024-05-16

Is the line below in the OP file commented out or not?

Code:

<!--
    # Using this rule does open all videos in VLC. So, the xml file is being read correctly.
    <rule video="true" player="VLC"/>
-->



RE: Play Using... Not in Context menu - CrystalP - 2024-05-16

Indeed, I must have confused this with another thread where the issue was "always plays with external player". The playerfactory of the first post doesn't do that since the rule section is commented as you pointed out.
That file belongs to the userdata folder and if there is no other issue this can be marked solved.


RE: Play Using... Not in Context menu - BrunoJ - 2024-05-16

Yes, that was my intent.  It was only done as a test to prove I had the correct location for the xml file. I then commented out the rule.


RE: Play Using... Not in Context menu - BrunoJ - 2024-05-16

No, this should not be marked solved.  I have yet to see the "Play Using" in the context menu.  That is the problem.


RE: Play Using... Not in Context menu - CrystalP - 2024-05-17

What you listed in the first post works when I c/p to my playercorefactory.xml, located in E:\devpt\kodi\kodi-build\Debug\portable_data\userdata (I have a portable install in my development directory)
For standard users it would be C:\Users\your user name\AppData\Roaming\Kodi\userdata


RE: Play Using... Not in Context menu - CrystalP - 2024-05-17

Just in case... The only standard way I know to bring up "play using..." is through the context menu. Using enter, play or other keys on the video won't let you choose an external player.


RE: Play Using... Not in Context menu - PatK - 2024-05-17

(2024-05-16, 23:55)BrunoJ Wrote: this should not be marked solved.  I have yet to see the "Play Using" in the context menu.  That is the problem.
Post #2 tells you that playercorefactory is working in your set-up, and further tells you that you would have to define other players which would include the native Kodi player. Check this.


RE: Play Using... Not in Context menu - CrystalP - 2024-05-18

FYI there is no need to define videoplayer again. It's added automatically by code regardless.


RE: Play Using... Not in Context menu - unreal8 - 2024-06-23

I'm lazy to post new thread. I can't see "Play Using..." using last nightly in context menu of Pluto channels from slyguy repo, only for local files it's present. V20 works OK.


RE: Play Using... Not in Context menu - PatK - 2024-06-23

(2024-06-23, 12:23)unreal8 Wrote: context menu of Pluto channels from slyguy repo
You'll have to approach the 3rd party author for this as a feature request.
(2024-06-23, 12:23)unreal8 Wrote: for local files it's present. V20 works OK.
Noted: working as designed.