FREE+FAST WORLD SHIPPING
UK STOCK   2 YEAR WARRANTY
FEATURED  :  MEDIA BOX  :  ALL  :  FORUM  :  CONTACT
Zidoo UHD2000
Professional 4K HDR media box with XMOS ESS DAC, 2x 3.5” HDD, 2x HDMI, auto res + framerate switching, UHD/BD menus, Hi-Fi audio, linear PSU and Zidoo media interface.

Author Topic: Android 7 / Kodi 17+ wrapper settings (playercorefactory)  (Read 19081 times)

futeko.com

  • Administrator
  • Senior Member
  • *****
  • Posts: 4158
    • View Profile
Android 7 / Kodi 17+ wrapper settings (playercorefactory)
« on: July 18, 2017, 09:26:28 AM »
HiMedia Q5/Q10 Pro is supplied with a small app pre-installed ('wrapper') to make Kodi play some video using HiMedia's video player app (Himediaplayer) rather than Kodi's internal player. Wrapper setup can be easily changed by editing a file on Q5/Q10 Pro called 'playercorefactory.xml'. This thread is for playercorefactory.xml optimisations.

The playercorefactory below is intended to be the current 'best' version for most Q5/Q10 Pro users.

It is designed to:

- Default play all video using Himediaplayer.
- Play DVD using Kodi internal player.
- Play audio (music) using Kodi internal player.
- Play all streams/pvr using Kodi internal player.

It is better than the playercorefactory.xml pre-installed on firmware 2.0.6 because:

- It allows NFS streams to be played using wrapper.

Installation instructions

Either:

Method 1 (using Q5/Q10 Pro)

- Install a file manager app like 'total commander' (my current favourite).
- Navigate to root/sdcard/Android/data/org.xbmc.kodi/files/.kodi/userdata/
- Edit playercorefactory.xml (total commander has a built in file editor)

Method 2 (using a PC)

- Enable Samba sharing on Q5/Q10 Pro (Settings - More - SAMBA Service - Enable)
- Navigate to Q5/Q10 Pro on a PC and then to /sdcard/Android/data/org.xbmc.kodi/files/.kodi/userdata/
- Edit playercorefactory.xml using PC file editor

Code:

Code: [Select]
<playercorefactory>

<players>
<!-- himedia player for video -->
<player name="Wrapper" type="ExternalPlayer" audio="false" video="true">
<filename>com.himedia.xbmcwrapper</filename>
<hidexbmc>true</hidexbmc>
<playcountminimumtime>120</playcountminimumtime>
</player>
</players>

<rules action="prepend">

<!--network internet streams-->
<rule protocols="pvr" player="VideoPlayer" /> <!--all pvr-->
<rule protocols="http|rtmp|sop" player="VideoPlayer" /> <!--all web streams-->
<rule internetstream="true" player="VideoPlayer" /> <!--all web streams-->
<!--video audio channels rules-->
<rule video="true" audiochannels="6" player="Wrapper" /> <!--5.1 audio-->
<rule video="true" audiochannels="8" player="Wrapper" /> <!-- 7.1 audio-->
<!--video resolution rules-->
<rule video="true" videoresolution="720" player="Wrapper" />
<rule video="true" videoresolution="1080" player="Wrapper" />
<rule video="true" videoresolution="2160" player="Wrapper" /> <!--4K-->
<!--audio / music rules-->
<rule audio="true" player="PAplayer"/> <!--all audio to kodi player-->
<!--specific codecs rules-->
<rule video="true" audiocodec="truehd|true-hd|dtshd|dts-hd|dts" player="Wrapper"/>
<rule filename=".*.3D.*|.*.3D.iso|3D.*" player="Wrapper"/>
<rule filetypes="bdmv|mpls|m2ts" player="Wrapper"/>
<rule video="true"  player="Wrapper"/>

</rules>

</playercorefactory>
« Last Edit: December 11, 2017, 03:44:11 PM by futeko.com »

futeko.com

  • Administrator
  • Senior Member
  • *****
  • Posts: 4158
    • View Profile
Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
« Reply #1 on: July 18, 2017, 09:32:50 AM »
All further improvements are welcome!

Mount81

  • Senior Member
  • ***
  • Posts: 1004
    • View Profile
Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
« Reply #2 on: July 18, 2017, 12:04:10 PM »
Great!

Why decided to play all audio files rather with KODI Player? Produces better audio quality?

I guess i will mod it to play all audio rather with Winamp, as it's far more decent in quality on the analogue outputs. (To be honest both KODI and HimedaMusic Player sounds very strange and unnatural).

Also would be nice to mod to play only DVD SD files with KODI, cause I have a plenty of SD avi, wmv sources that would be better with HiPlayer.

I guess one of these mods would do:
<rule filename=".*.3D.*|.*.3D.iso|3D.*"|*.avi|*.wmv" player="Wrapper"/>
or
<rule filename="*.vob" player="VideoPlayer"/>

:???

sherakin

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
« Reply #3 on: July 18, 2017, 01:50:31 PM »
I only want that all DVD.iso, TS-Folders and vob files uses the Kodi Videoplayer. The rest should be stay how it is.

How is that possible? Could anyone help me? Would appreciate it.

Thanks in advance!

Regards!

dorol

  • Senior Member
  • ***
  • Posts: 124
    • View Profile
Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
« Reply #4 on: July 18, 2017, 03:58:09 PM »
Similar thread for Imprex engine?
Flickering still present...

futeko.com

  • Administrator
  • Senior Member
  • *****
  • Posts: 4158
    • View Profile
Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
« Reply #5 on: July 18, 2017, 05:09:57 PM »
Similar thread for Imprex engine?
Flickering still present...

Totally off topic and I will delete/move future posts not about wrapper / playercorefactory.

The 'flickering' is a feature of Imprex, dynamic contrast. It's a lot more subtle with the Imprex in 2.0.4 and if you don't like it you can just turn Imprex off.

dukunmagic

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
« Reply #6 on: July 19, 2017, 06:13:45 AM »
I only want that all DVD.iso, TS-Folders and vob files uses the Kodi Videoplayer. The rest should be stay how it is.

How is that possible? Could anyone help me? Would appreciate it.

Thanks in advance!

Regards!

Yes, I would also need this.
If I play Blu-Ray TV Shows like "Friends" with menu like DVD Menu where we can chooose the episodes etc, I guess I would need this to be played by Kodi ? As HiMedia Player can't show the menu ?
If so, then how to mod the playercorefactory so such files are played using Kodi Player ?
* need the exact mods command as I don't really understand how to define such kind of movie (Blu-Ray TV Shows with menu)

THanks.

Transit266

  • Full Member
  • **
  • Posts: 52
    • View Profile
Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
« Reply #7 on: July 19, 2017, 10:22:39 AM »
Could you please show me how to change this code to play streaming video by MX Player (free app). Thanks.

futeko.com

  • Administrator
  • Senior Member
  • *****
  • Posts: 4158
    • View Profile
Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
« Reply #8 on: July 19, 2017, 11:41:15 AM »
Could you please show me how to change this code to play streaming video by MX Player (free app). Thanks.

The below has only been tested on Youtube, where it works.

Add this to the top players section:

Code: [Select]
<!-- mxplayerfree -->
<player name="MXPlayerFree" type="ExternalPlayer" audio="false" video="true">
<filename>com.mxtech.videoplayer.ad</filename>
<hidexbmc>true</hidexbmc>
<playcountminimumtime>120</playcountminimumtime>
</player>

Change the following lines from Videoplayer to MXPlayerfree:

Code: [Select]
<rule protocols="http|https|rtmp|sop" player="MXPlayerFree" /> <!--all http-->

<rule protocols="pvr" player="MXPlayerFree" /> <!--all pvr-->
<rule internetstream="true" player="MXPlayerFree" /> <!--all streams-->

So:

Code: [Select]
<playercorefactory>
<players>
<!-- himedia player -->
<player name="Wrapper" type="ExternalPlayer" audio="false" video="true">
<filename>com.himedia.xbmcwrapper</filename>
<hidexbmc>true</hidexbmc>
<playcountminimumtime>120</playcountminimumtime>
</player>

<!-- mxplayerfree -->
<player name="MXPlayerFree" type="ExternalPlayer" audio="false" video="true">
<filename>com.mxtech.videoplayer.ad</filename>
<hidexbmc>true</hidexbmc>
<playcountminimumtime>120</playcountminimumtime>
</player>
</players>

<rules action="prepend">

<!--network protocol rules-->

<rule protocols="http|https|rtmp|sop" player="MXPlayerFree" /> <!--all http-->
<rule protocols="nfs|smb" player="Wrapper" /> <!--all nfs|smb-->

<!--internet streams rules-->

<rule protocols="pvr" player="MXPlayerFree" /> <!--all pvr-->
<rule internetstream="true" player="MXPlayerFree" /> <!--all streams-->

<!--video audio channels rules-->

<rule video="true" audiochannels="6" player="Wrapper" /> <!--5.1 audio-->
<rule video="true" audiochannels="8" player="Wrapper" /> <!-- 7.1 audio-->

<!--video resolution rules-->

<rule video="true" videoresolution="480" player="VideoPlayer" />
<rule video="true" videoresolution="576" player="VideoPlayer" />
<rule video="true" videoresolution="720" player="Wrapper" />
<rule video="true" videoresolution="1080" player="Wrapper" />
<rule video="true" videoresolution="2160" player="Wrapper" /> <!--4K-->

<!--audio / music rules-->

<rule audio="true" player="PAplayer"/> <!--all audio to kodi internal music player-->

<!--specific codecs rules-->

<rule video="true" audiocodec="truehd|true-hd|dtshd|dts-hd|dts" player="Wrapper"/>

<rule filename=".*.3D.*|.*.3D.iso|3D.*" player="Wrapper"/>
<rule filetypes="iso|bdmv|mpls|m2ts" player="Wrapper"/>
<rule video="true"  player="Wrapper"/>
</rules>
</playercorefactory>

dukunmagic

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
« Reply #9 on: July 19, 2017, 12:52:19 PM »
I only want that all DVD.iso, TS-Folders and vob files uses the Kodi Videoplayer. The rest should be stay how it is.

How is that possible? Could anyone help me? Would appreciate it.

Thanks in advance!

Regards!

Yes, I would also need this.
If I play Blu-Ray TV Shows like "Friends" with menu like DVD Menu where we can chooose the episodes etc, I guess I would need this to be played by Kodi ? As HiMedia Player can't show the menu ?
If so, then how to mod the playercorefactory so such files are played using Kodi Player ?
* need the exact mods command as I don't really understand how to define such kind of movie (Blu-Ray TV Shows with menu)

THanks.

Futeko,
Or Anyone ?
Any advice ?
Thanks

Transit266

  • Full Member
  • **
  • Posts: 52
    • View Profile
Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
« Reply #10 on: July 19, 2017, 02:22:19 PM »
Could you please show me how to change this code to play streaming video by MX Player (free app). Thanks.

The below has only been tested on Youtube, where it works.

Add this to the top players section:

Code: [Select]
<!-- mxplayerfree -->
<player name="MXPlayerFree" type="ExternalPlayer" audio="false" video="true">
<filename>com.mxtech.videoplayer.ad</filename>
<hidexbmc>true</hidexbmc>
<playcountminimumtime>120</playcountminimumtime>
</player>

Change the following lines from Videoplayer to MXPlayerfree:

Code: [Select]
<rule protocols="http|https|rtmp|sop" player="MXPlayerFree" /> <!--all http-->

<rule protocols="pvr" player="MXPlayerFree" /> <!--all pvr-->
<rule internetstream="true" player="MXPlayerFree" /> <!--all streams-->

So:

Code: [Select]
<playercorefactory>
<players>
<!-- himedia player -->
<player name="Wrapper" type="ExternalPlayer" audio="false" video="true">
<filename>com.himedia.xbmcwrapper</filename>
<hidexbmc>true</hidexbmc>
<playcountminimumtime>120</playcountminimumtime>
</player>

<!-- mxplayerfree -->
<player name="MXPlayerFree" type="ExternalPlayer" audio="false" video="true">
<filename>com.mxtech.videoplayer.ad</filename>
<hidexbmc>true</hidexbmc>
<playcountminimumtime>120</playcountminimumtime>
</player>
</players>

<rules action="prepend">

<!--network protocol rules-->

<rule protocols="http|https|rtmp|sop" player="MXPlayerFree" /> <!--all http-->
<rule protocols="nfs|smb" player="Wrapper" /> <!--all nfs|smb-->

<!--internet streams rules-->

<rule protocols="pvr" player="MXPlayerFree" /> <!--all pvr-->
<rule internetstream="true" player="MXPlayerFree" /> <!--all streams-->

<!--video audio channels rules-->

<rule video="true" audiochannels="6" player="Wrapper" /> <!--5.1 audio-->
<rule video="true" audiochannels="8" player="Wrapper" /> <!-- 7.1 audio-->

<!--video resolution rules-->

<rule video="true" videoresolution="480" player="VideoPlayer" />
<rule video="true" videoresolution="576" player="VideoPlayer" />
<rule video="true" videoresolution="720" player="Wrapper" />
<rule video="true" videoresolution="1080" player="Wrapper" />
<rule video="true" videoresolution="2160" player="Wrapper" /> <!--4K-->

<!--audio / music rules-->

<rule audio="true" player="PAplayer"/> <!--all audio to kodi internal music player-->

<!--specific codecs rules-->

<rule video="true" audiocodec="truehd|true-hd|dtshd|dts-hd|dts" player="Wrapper"/>

<rule filename=".*.3D.*|.*.3D.iso|3D.*" player="Wrapper"/>
<rule filetypes="iso|bdmv|mpls|m2ts" player="Wrapper"/>
<rule video="true"  player="Wrapper"/>
</rules>
</playercorefactory>

Thanks alot. I will try this code tonight.

Eriol

  • Senior Member
  • ***
  • Posts: 247
    • View Profile
Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
« Reply #11 on: July 20, 2017, 01:12:28 AM »
I only want that all DVD.iso, TS-Folders and vob files uses the Kodi Videoplayer. The rest should be stay how it is.

How is that possible? Could anyone help me? Would appreciate it.

Thanks in advance!

Regards!

Yes, I would also need this.
If I play Blu-Ray TV Shows like "Friends" with menu like DVD Menu where we can chooose the episodes etc, I guess I would need this to be played by Kodi ? As HiMedia Player can't show the menu ?
If so, then how to mod the playercorefactory so such files are played using Kodi Player ?
* need the exact mods command as I don't really understand how to define such kind of movie (Blu-Ray TV Shows with menu)

THanks.

Futeko,
Or Anyone ?
Any advice ?
Thanks

The problem why pcristi came up with this config is that Kodi cannot differentiate bluray and dvd iso and he wanted to play bluray isos with the wrapper.

There is a workaround however:

Code: [Select]
<playercorefactory>
<players>
<player name="Wrapper" type="ExternalPlayer" audio="false" video="true">
<filename>com.himedia.xbmcwrapper</filename>
<hidexbmc>true</hidexbmc>
<playcountminimumtime>120</playcountminimumtime>
</player>
</players>

<rules action="prepend">

<!--Video Rules-->
<rule video="true" player="Wrapper" >
<rule name="dvd|dvdimage|dvdfile" player="Wrapper" >
<rule video="true" videoresolution="480" player="VideoPlayer" />
<rule video="true" videoresolution="576" player="VideoPlayer" />
</rule>
<rule filetypes="iso|ifo|vob" player="Wrapper" >
<rule video="true" videoresolution="480" player="VideoPlayer" />
<rule video="true" videoresolution="576" player="VideoPlayer" />
</rule>
</rule>

<!--Audio Rules-->
<rule audio="true" player="PAplayer" />

<!--Stream Rules-->
<rule internetstream="true" player="VideoPlayer" />
<rule protocols="http|https|rtmp|sop|pvr" player="VideoPlayer" />

</rules>
</playercorefactory>


futeko.com

  • Administrator
  • Senior Member
  • *****
  • Posts: 4158
    • View Profile
Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
« Reply #12 on: July 20, 2017, 09:09:43 AM »
Eriol's version is simpler and achieves the same as the opening post / pcristi version.

The only thing I've done is added back the PVR line.

I think this is new optimum! After a bit of testing I will replace OP version with it.

Code: [Select]
<playercorefactory>
<players>
<player name="Wrapper" type="ExternalPlayer" audio="false" video="true">
<filename>com.himedia.xbmcwrapper</filename>
<hidexbmc>true</hidexbmc>
<playcountminimumtime>120</playcountminimumtime>
</player>
</players>

<rules action="prepend">

<!--Video Rules-->
<rule video="true" player="Wrapper" >
<rule name="dvd|dvdimage|dvdfile" player="Wrapper" >
<rule video="true" videoresolution="480" player="VideoPlayer" />
<rule video="true" videoresolution="576" player="VideoPlayer" />
</rule>
<rule filetypes="iso|ifo|vob" player="Wrapper" >
<rule video="true" videoresolution="480" player="VideoPlayer" />
<rule video="true" videoresolution="576" player="VideoPlayer" />
</rule>
</rule>

<!--Audio Rules-->
<rule audio="true" player="PAplayer" />

<!--Stream Rules-->
<rule internetstream="true" player="VideoPlayer" />
<rule protocols="http|https|rtmp|sop|pvr" player="VideoPlayer" />
<rule protocols="pvr" player="VideoPlayer" />

</rules>
</playercorefactory>

Eriol

  • Senior Member
  • ***
  • Posts: 247
    • View Profile
Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
« Reply #13 on: July 20, 2017, 09:16:57 AM »
Eriol's version is simpler and achieves the same as the opening post / pcristi version.

The only thing I've done is added back the PVR line.

I think this is new optimum! After a bit of testing I will replace OP version with it.

Not exactly: pcristi version does resolution detection only to differentiate bluray from dvd. But this results that all SD content (like old xvid dvdrips) will be played with the VideoPlayer. A fix for that was implemented in mine with a chained rule (iso? -> sd?) so only DVDs are be played with the VideoPlayer.


You don't need the pvr line it's there already:
<rule protocols="http|https|rtmp|sop|pvr" player="VideoPlayer" />


But yeah, I advise testing because I didn't tested all scenarios (steam, audio) myself because I don't have those in my library.
« Last Edit: July 20, 2017, 09:22:31 AM by Eriol »

futeko.com

  • Administrator
  • Senior Member
  • *****
  • Posts: 4158
    • View Profile
Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
« Reply #14 on: July 20, 2017, 09:20:53 AM »
Not exactly: pcristi version does resolution detection only to differentiate bluray from dvd. But this results that all SD content (like old xvid dvdrips) will be played with the VideoPlayer. A fix for that was implemented in mine with a chained rule (iso? -> sd?).


You don't need the pvr line it's there already:
<rule protocols="http|https|rtmp|sop|pvr" player="VideoPlayer" />

Ah. I didn't notice pvr listed. Your version is better in how it handles identifying DVD iso, I see that.

So, optimum:

Code: [Select]
<playercorefactory>
<players>
<player name="Wrapper" type="ExternalPlayer" audio="false" video="true">
<filename>com.himedia.xbmcwrapper</filename>
<hidexbmc>true</hidexbmc>
<playcountminimumtime>120</playcountminimumtime>
</player>
</players>

<rules action="prepend">

<!--Video Rules-->
<rule video="true" player="Wrapper" >
<rule name="dvd|dvdimage|dvdfile" player="Wrapper" >
<rule video="true" videoresolution="480" player="VideoPlayer" />
<rule video="true" videoresolution="576" player="VideoPlayer" />
</rule>
<rule filetypes="iso|ifo|vob" player="Wrapper" >
<rule video="true" videoresolution="480" player="VideoPlayer" />
<rule video="true" videoresolution="576" player="VideoPlayer" />
</rule>
</rule>

<!--Audio Rules-->
<rule audio="true" player="PAplayer" />

<!--Stream Rules-->
<rule internetstream="true" player="VideoPlayer" />
<rule protocols="http|https|rtmp|sop|pvr" player="VideoPlayer" />

</rules>
</playercorefactory>

 

Zidoo Z9S
Feature packed 4K HDR Android box with auto resolution + framerate switching, UHD/BD menus and Hi-Fi audio.
DELIVERY  :  WARRANTY / RETURNS  :  FAQ  :  BREXIT  :  ABOUT
Price in £GBP with conversion by Paypal (more info). UK+EU delivery includes VAT at 20% (more info). Privacy Policy. © SDHDIGITAL LTD 2019