Kodi 21.2 / Z9X Pro - Working external player config

Discussion in 'ZDMC for Zidoo' started by cjur, May 5, 2025.

  1. cjur

    cjur New Member

    This works. Longpress and use the "Play using..." context menu action or setup rules in the following config:


    playercorefactory.xml:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <playercorefactory>
      <players>
        <!-- Z9X Pro External Player for Video Files -->
        <player name="Z9XProMoviePlayer" type="ExternalPlayer" audio="false" video="true">
          <filename>com.android.gallery3d</filename>
          <args>-a com.android.gallery3d.app.MovieActivity</args>
          <args>-d "{1}"</args>
          <args>--activity-clear-task</args>
          <args>--activity-clear-top</args>
          <hidexbmc>true</hidexbmc>
          <hideconsole>true</hideconsole>
          <warpcursor>none</warpcursor>
        </player>
        
        <!-- Z9X Pro External Player for ZDMC Compatible Content -->
        <player name="Z9XProZDMCPlayer" type="ExternalPlayer" audio="false" video="true">
          <filename>com.android.gallery3d</filename>
          <args>-a com.android.gallery3d.app.ZDMCActivity</args>
          <args>-d "{1}"</args>
          <args>--activity-clear-task</args>
          <args>--activity-clear-top</args>
          <hidexbmc>true</hidexbmc>
          <hideconsole>true</hideconsole>
          <warpcursor>none</warpcursor>
        </player>
        
        <!-- Z9X Pro External Player for Gallery Content -->
        <player name="Z9XProGalleryPlayer" type="ExternalPlayer" audio="true" video="true">
          <filename>com.android.gallery3d</filename>
          <args>-a com.android.gallery3d.app.GalleryActivity</args>
          <args>-d "{1}"</args>
          <args>--activity-clear-task</args>
          <args>--activity-clear-top</args>
          <hidexbmc>true</hidexbmc>
          <hideconsole>true</hideconsole>
          <warpcursor>none</warpcursor>
        </player>
      </players>
    
    </playercorefactory>
    The file goes in the Kodi userdata directory.

    I pointed Claude at the code (especially the relevant constants) in Jellyfin android fork
     
  2. LapinFou14

    LapinFou14 New Member

    Thanks for sharing!
    Just one question: does the AFR works with this setup?
     
  3. cjur

    cjur New Member

    It doesn't fix Kodi's afr not working for its internal player, but the zidoo player handles frame rate switching fine
     
  4. hdmkv

    hdmkv Active Member Beta test group

    Thanks cjur, but this playercorefactory.xml didn't work with Z9X Pro. Just like with the XBMC/Kodi Wrapper app, the box needs to be rooted I believe for playercorefactory.xml to work.
     
  5. econaut

    econaut New Member

    @cjur Is your box rooted? Trying to understand why playercorefactory.xml works for some people und some it isn't.

    @hdmkv How did you come to the conclusion that the box needs to be rooted?
     
  6. cjur

    cjur New Member

    my box is not rooted, i didn't even know that was a thing with these. i haven't used this in a while, but it only worked with local or network mounted shares. https streams do not work (like umbrella or that stuff)
     

Share This Page