UK BASED ∙ UK STOCK ∙ ESTABLISHED 2010
2 YEAR WARRANTY ∙ FAST DELIVERY
EXPERT TECHNICAL SUPPORT
09-FEB UGOOS AM6B+ BACK IN STOCK   30-JAN ZIDOO 8K FIRMWARE UPDATE 1.3.05   5-JAN ARYLIC LP10 ADDS QOBUZ CONNECT  
This forum was closed in October 2025 in response to sustained DDOS type attacks. It has been left up read-only to allow access to support information and downloads. Thanks to all the users who contributed over the years.

Visit futeko.com for new Audio and Video Media Players!

Author Topic: playercorefactory (wrapper) Improvements  (Read 20628 times)

futeko.com

  • Administrator
  • Senior Member
  • *****
  • Posts: 4657
playercorefactory (wrapper) Improvements
« on: July 06, 2016, 04:15:23 PM »
HiMedia Q5/Q10 Pro use a 'wrapper' with Kodi to give full hardware features for video playback. What the wrapper app does is create a file called playercorefactory.xml in /sdcard/data/org.xbmc.kodi/files/.kodi/userdata. It is this file that controls which player (internal Kodi or Himediaplayer) Kodi uses to play the video.

You can access this file on Q5/Q10 Pro by installing ES File Explorer and enabling 'show hidden files' in setting - display.

The default wrapper is attached to this post. The idea of this thread is to post modifications to improve it. Better handling of streaming and music would be the first things. We'll be looking at this ourselves in coming days, but the more people working on it the better so community input is appreciated.

The Kodi wiki has playercorefactory documentation here: http://kodi.wiki/view/External_players

[attachment deleted by admin]
« Last Edit: July 06, 2016, 04:45:32 PM by futeko.com »

futeko.com

  • Administrator
  • Senior Member
  • *****
  • Posts: 4657
Re: playercorefactory (wrapper) Improvements
« Reply #1 on: July 06, 2016, 04:40:03 PM »
From pcristi, this version adds lines to route all NFS video to internal player (NFS not being supported with wrapper) and may help with streams going to internal player too.

Adds:

Code: [Select]
<rule filename="pvr.*.pvr" player="DVDPlayer"/>
<rule protocols="nfs" player="DVDPlayer" />

Replace /sdcard/data/org.xbmc.kodi/files/.kodi/userdata/playercorefactory.xml with the attached version.

[attachment deleted by admin]
« Last Edit: July 07, 2016, 08:47:00 AM by futeko.com »

DancesWithChickens

  • Senior Member
  • ***
  • Posts: 140
Re: playercorefactory (wrapper) Improvements
« Reply #2 on: July 06, 2016, 05:47:15 PM »
Two questions:

1.)
How would i set the wrapper to only play files with a certain audio format?
So far Dolby TrueHD seems to be only format i have which KODI cannot handle without the wrapper.

2.)
How would i set the wrapper to also play streaming video, like the KODI YouTube addon?
(it sometimes has issues with stuttering video/freezing video at the end of playback)

Binnugsay

  • Senior Member
  • ***
  • Posts: 214
Re: playercorefactory (wrapper) Improvements
« Reply #3 on: July 07, 2016, 08:09:06 AM »
From pcristi, this version adds lines to route all NFS video to internal player (NFS not being supported with wrapper) and may help with streams going to internal player too.

Adds:

Code: [Select]
<rule filename="pvr.*.pvr" player="DVDPlayer"/>
<rule protocols="nfs" player="DVDPlayer" />

Replace /sdcard/data/org.xbmc.kodi/files/.kodi/userdata/playercorefactory.xml with the attached version.

Hello futeko,

Nice way but the attached file playercorefactory.xml is empty!!!

futeko.com

  • Administrator
  • Senior Member
  • *****
  • Posts: 4657
Re: playercorefactory (wrapper) Improvements
« Reply #4 on: July 07, 2016, 09:50:42 AM »
Two questions:

1.)
How would i set the wrapper to only play files with a certain audio format?
So far Dolby TrueHD seems to be only format i have which KODI cannot handle without the wrapper.

2.)
How would i set the wrapper to also play streaming video, like the KODI YouTube addon?
(it sometimes has issues with stuttering video/freezing video at the end of playback)

1. It would require a rule like <rule video="true" audiocodec="HD" player="Wrapper" />. The 'truehd' part is a regex search on the codec, so if the file reports codec as 'truehd' it will pick it up. you would probably also want 'true-hd' and other terms to be sure to catch all files.

2. The wrapper won't play streams. I just tested it with <rule internetstream="true" player="Wrapper" /> <rule remote="true" player="Wrapper" />. Even if it did then you probably wouldn't want this behaviour because it would apply to all Kodi add-ons and many need Kodi default player to work correctly.

futeko.com

  • Administrator
  • Senior Member
  • *****
  • Posts: 4657
Re: playercorefactory (wrapper) Improvements
« Reply #5 on: July 07, 2016, 10:28:17 AM »
The default HiMedia playercorefactory contains a lot of useless code. The attached version is much simpler and should achieve the same aim.

I've also annotated it a little so it's clearer what's going on.

This playercorefactory should play all HD video via wrapper and all streams using Kodi player.

It's not perfect, but is a better base than the HiMedia version if you want to improve it or add your own specific requirements.

[attachment deleted by admin]

salalee

  • Full Member
  • **
  • Posts: 62
Re: playercorefactory (wrapper) Improvements
« Reply #6 on: July 07, 2016, 01:01:26 PM »
aside from kodi , just wondering how can i replace the system-based playercorefactory (wrapper) with the attached file. just wanna use it with himedia video player... thanks in advance

futeko.com

  • Administrator
  • Senior Member
  • *****
  • Posts: 4657
Re: playercorefactory (wrapper) Improvements
« Reply #7 on: July 07, 2016, 02:08:19 PM »
aside from kodi , just wondering how can i replace the system-based playercorefactory (wrapper) with the attached file. just wanna use it with himedia video player... thanks in advance

I don't fully understand your question. The playercorefactory file is only for Kodi. It controls how himediaplayer is called from within Kodi.

salalee

  • Full Member
  • **
  • Posts: 62
Re: playercorefactory (wrapper) Improvements
« Reply #8 on: July 07, 2016, 04:22:47 PM »
apologies bro , my bad....  when i freshly flashed q10 pro with the official 1.0.3 , there was no stutter , but lately and for some weird reason , i started experiencing the stutter from time to time on 1080p mkv files) so i was just wondering if i can do something with the himedia video player to bring it back to the way it was... clearing the cash , setting back the PQ settings to defaults and reinstalling the app itself didn't help out...
by the way ; there's no stutter when using kodi's default player (w/o wrapper)..... thanks

futeko.com

  • Administrator
  • Senior Member
  • *****
  • Posts: 4657
Re: playercorefactory (wrapper) Improvements
« Reply #9 on: July 07, 2016, 04:42:00 PM »
Not sure why you would now be getting stutter where before you weren't. Could be network related if you've reset app settings and it's made no difference?

There will be a new firmware next week. I can't guarantee it will fix everything, but I advise waiting and seeing if it brings an improvement.

salalee

  • Full Member
  • **
  • Posts: 62
Re: playercorefactory (wrapper) Improvements
« Reply #10 on: July 07, 2016, 07:32:05 PM »
Not sure why you would now be getting stutter where before you weren't. Could be network related if you've reset app settings and it's made no difference?

There will be a new firmware next week. I can't guarantee it will fix everything, but I advise waiting and seeing if it brings an improvement.

thanks bro....
i've put 3 different android boxes side by side and played some 1080p mkv files , (beelink R89 "rk3288" , minix U1 "amlogic s905" and the Q10 pro... gosh , i couldn't just believe that i was using the former two... with all do respect to those brands  but nothing beats the Q10 pro. i mean the video playback quality is just superb

stack

  • Full Member
  • **
  • Posts: 79
Re: playercorefactory (wrapper) Improvements
« Reply #11 on: July 07, 2016, 10:11:53 PM »
The default HiMedia playercorefactory contains a lot of useless code. The attached version is much simpler and should achieve the same aim.

I've also annotated it a little so it's clearer what's going on.

This playercorefactory should play all HD video via wrapper and all streams using Kodi player.

It's not perfect, but is a better base than the HiMedia version if you want to improve it or add your own specific requirements.

Thanks!
It is OK for IPTV now using Kodi's internal DVD player.

DancesWithChickens

  • Senior Member
  • ***
  • Posts: 140
Re: playercorefactory (wrapper) Improvements
« Reply #12 on: July 08, 2016, 09:09:22 AM »
Two questions:

1.)
How would i set the wrapper to only play files with a certain audio format?
So far Dolby TrueHD seems to be only format i have which KODI cannot handle without the wrapper.

2.)
How would i set the wrapper to also play streaming video, like the KODI YouTube addon?
(it sometimes has issues with stuttering video/freezing video at the end of playback)

1. It would require a rule like <rule video="true" audiocodec="HD" player="Wrapper" />. The 'truehd' part is a regex search on the codec, so if the file reports codec as 'truehd' it will pick it up. you would probably also want 'true-hd' and other terms to be sure to catch all files.

2. The wrapper won't play streams. I just tested it with <rule internetstream="true" player="Wrapper" /> <rule remote="true" player="Wrapper" />. Even if it did then you probably wouldn't want this behaviour because it would apply to all Kodi add-ons and many need Kodi default player to work correctly.

I just saw that answer, thank you.
I made a modified version of the file specific for my system. :)

frankie13

  • Newbie
  • *
  • Posts: 49
Re: playercorefactory (wrapper) Improvements
« Reply #13 on: July 08, 2016, 10:19:38 AM »
so i just uninstll the old playercorefactory wrapper and install this from file manager and thats it nothing else to do

futeko.com

  • Administrator
  • Senior Member
  • *****
  • Posts: 4657
Re: playercorefactory (wrapper) Improvements
« Reply #14 on: July 08, 2016, 12:11:56 PM »
so i just uninstll the old playercorefactory wrapper and install this from file manager and thats it nothing else to do

What are you trying to achieve?

The modified playercorefactory files in this thread aren't necessarily better than the pre-installed HiMedia version (except that they clean up the code). This thread is just about playercorefactory and the possibilities it opens up.

Unless you know what you want (i.e. all 4K to wrapper and the rest to DVDPlayer) then I recommend not touching the pre-installed playercorefactory.

 

DELIVERY ∙ PAYMENT ∙ WARRANTY+RETURNS ∙ INTERNATIONAL TAX ∙ ABOUT ∙ PRIVACY ∙ NEWS ∙ CONTACT
© SDHDIGITAL LTD 2026
SITEMAP