futeko.com FORUM

Product Support => HiMedia Q10 Pro, Q5 Pro => Topic started by: futeko.com on July 18, 2017, 09:26:28 AM

Title: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: futeko.com 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>
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: futeko.com on July 18, 2017, 09:32:50 AM
All further improvements are welcome!
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: Mount81 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"/>

:???
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: sherakin 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!
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: dorol on July 18, 2017, 03:58:09 PM
Similar thread for Imprex engine?
Flickering still present...
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: futeko.com 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.
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: dukunmagic 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.
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: Transit266 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.
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: futeko.com 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>
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: dukunmagic 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
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: Transit266 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.
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: Eriol 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>

Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: futeko.com 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>
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: Eriol 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.
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: futeko.com 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>
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: Eriol on July 20, 2017, 10:36:32 AM
Sadly detection still not perfect so I added a new line to make sure SD played by wrapper:
<rule filetypes="avi|mkv|mp4|wmv|mov|mpeg|asf|webm" player="Wrapper" />

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 filetypes="avi|mkv|mp4|wmv|mov|mpeg|asf|webm" 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>
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: Mount81 on July 20, 2017, 11:46:30 AM
Sadly detection still not perfect so I added a new line to make sure SD played by wrapper:
<rule filetypes="avi|mkv|mp4|wmv|mov|mpeg|asf|webm" player="Wrapper" />

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 filetypes="avi|mkv|mp4|wmv|mov|mpeg|asf|webm" 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>

Hmm... Not sure about not standard DVD's... But cool, will see! :)
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: sherakin on July 21, 2017, 03:40:29 PM
Sadly detection still not perfect so I added a new line to make sure SD played by wrapper:
<rule filetypes="avi|mkv|mp4|wmv|mov|mpeg|asf|webm" player="Wrapper" />

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 filetypes="avi|mkv|mp4|wmv|mov|mpeg|asf|webm" 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>

Hmm... Not sure about not standard DVD's... But cool, will see! :)

For me it doesnt work. All DVD iso's will play with the wrapper as standard and ive tested different dvd iso's.
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: Eriol on July 21, 2017, 05:41:05 PM
Hmm... Not sure about not standard DVD's... But cool, will see! :)

For me it doesnt work. All DVD iso's will play with the wrapper as standard and ive tested different dvd iso's.

Ok... then try this:

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 videocodec="mpeg2" player="VideoPlayer" />
</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>

I didn't include non-dvd mpeg2 coded exceptions.
If someone thinks that's a requirement, I try to add it.
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: q10pro1 on July 21, 2017, 06:50:48 PM
With this modification DVD .ISO PLAY WITH HIMEDIAPLAY ON 2.0.4?
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: Mount81 on July 21, 2017, 07:44:51 PM
With this modification DVD .ISO PLAY WITH HIMEDIAPLAY ON 2.0.4?

Read through the thread and you will get what it's up for. But NO, it's a different good. HimediaPayer will play DVDs, but one will need the following patch to play on correct fps: http://www.futeko.com/newforum/index.php?topic=1043.0 (http://www.futeko.com/newforum/index.php?topic=1043.0) But from other reasons I wouldn't install it just for occasional DVD playback.
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: dukunmagic on July 24, 2017, 06:31:26 PM
Hi, Am sorry to ask again. I've tried to tweak the coreplayerfactory but doesn't work.

I want to play my Blu-Ray which are TV Shows, they contain BDMV Structure but they have Menu in which we can choose episode to watch.
I see that the BDMV file structure is just the same as my other Blu-Ray (Cinema) Movies.

If I play it with Wrapper, the menu just don't come out. It just play episode 1 directly, and then stop.
But if I play it with VIdeo Player, then the menu will come out.

So, how to define (in coreplayerfactory) these Blu-Ray TV Shows (with menu) with BDMV Structure to be played by Video Player ?

Thanks
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: Eriol on July 24, 2017, 06:46:19 PM
Hi, Am sorry to ask again. I've tried to tweak the coreplayerfactory but doesn't work.

I want to play my Blu-Ray which are TV Shows, they contain BDMV Structure but they have Menu in which we can choose episode to watch.
I see that the BDMV file structure is just the same as my other Blu-Ray (Cinema) Movies.

If I play it with Wrapper, the menu just don't come out. It just play episode 1 directly, and then stop.
But if I play it with VIdeo Player, then the menu will come out.

So, how to define (in coreplayerfactory) these Blu-Ray TV Shows (with menu) with BDMV Structure to be played by Video Player ?

Thanks

Try this modification:

Code: [Select]
<!--Video Rules-->
<rule video="true" player="Wrapper" >
<rule videocodec="mpeg2" player="VideoPlayer" />
<rule filetypes="bdmv" player="VideoPlayer" />
</rule>
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: dukunmagic on July 25, 2017, 01:32:13 AM
Hi, Am sorry to ask again. I've tried to tweak the coreplayerfactory but doesn't work.

I want to play my Blu-Ray which are TV Shows, they contain BDMV Structure but they have Menu in which we can choose episode to watch.
I see that the BDMV file structure is just the same as my other Blu-Ray (Cinema) Movies.

If I play it with Wrapper, the menu just don't come out. It just play episode 1 directly, and then stop.
But if I play it with VIdeo Player, then the menu will come out.

So, how to define (in coreplayerfactory) these Blu-Ray TV Shows (with menu) with BDMV Structure to be played by Video Player ?

Thanks

Try this modification:

Code: [Select]
<!--Video Rules-->
<rule video="true" player="Wrapper" >
<rule videocodec="mpeg2" player="VideoPlayer" />
<rule filetypes="bdmv" player="VideoPlayer" />
</rule>

This will make all bdmv structure including all bluray individual movies played by video player, isnt it ?
I need bluray individual movies played by wrapper, while only the ones with episodes (TV Shows) played by video player..
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: Eriol on July 25, 2017, 07:38:47 AM
This will make all bdmv structure including all bluray individual movies played by video player, isnt it ?
I need bluray individual movies played by wrapper, while only the ones with episodes (TV Shows) played by video player..

Afaik that's cannot be done.
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: futeko.com on July 25, 2017, 09:45:29 AM
It could be done as long as all the episodes contained a string (e.g. 'episode') identifying them as episodes for playback by Kodi player.

So you would need to rename all episodes to include the chosen identifier string.

Code: [Select]
<rule filename="*episode*" player="VideoPlayer" />
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: Eriol on July 25, 2017, 09:55:24 AM
It could be done as long as all the episodes contained a string (e.g. 'episode') identifying them as episodes for playback by Kodi player.

So you would need to rename all episodes to include the chosen identifier string.

Code: [Select]
<rule filename="*episode*" player="VideoPlayer" />

If it's a bluray file structure with menu you will have trouble to rename the actual m2ts files to *episode*. I mean it can be done but then the menu won't work properly anymore. And I guess the point here is a working menu.
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: futeko.com on July 25, 2017, 09:56:10 AM
If it's a bluray file structure with menu you will have trouble to rename the actual m2ts files to *episode*. I mean it can be done but then the menu won't work properly anymore. And I guess the point here is a working menu.

Excellent point!  :-[
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: dukunmagic on July 25, 2017, 10:41:12 AM
It could be done as long as all the episodes contained a string (e.g. 'episode') identifying them as episodes for playback by Kodi player.

So you would need to rename all episodes to include the chosen identifier string.

Code: [Select]
<rule filename="*episode*" player="VideoPlayer" />

If it's a bluray file structure with menu you will have trouble to rename the actual m2ts files to *episode*. I mean it can be done but then the menu won't work properly anymore. And I guess the point here is a working menu.

Correct.

I guess can we hope that the next firmware will enhance the himedia player to be able to show menu for bluray TV shows (with menu) ?

For temporary solution, is it possible if i rename the title / add with .TV, for example : "Friends.TV", then mod the coreplayer factory with condition file name with .tv will be played by video player ?

Thanks
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: Eriol on July 25, 2017, 11:09:21 AM
For temporary solution, is it possible if i rename the title / add with .TV, for example : "Friends.TV", then mod the coreplayer factory with condition file name with .tv will be played by video player ?

Thanks

Nah, Kodi don't care about folder names but filenames.
I only see this one working if you pack the bluray into an ISO file and then you rename it for something like  *blurayseries*.iso
Then you can start to experiment with the filename filter:

Code: [Select]
<rule filename="*blurayseries*" player="VideoPlayer" />
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: saltino on July 26, 2017, 10:14:43 AM
I have a question about default player on custom repo of Himedia

I have extracted your default player here recovery APK:

HimediaVideoPlayer_100110411_1.0.11_HMD_0411

http://nitroflare.com/view/0ADE1ECCE780880/HimediaVideoPlayer_100110411_1.0.11_HMD_0411_Release.apk (http://nitroflare.com/view/0ADE1ECCE780880/HimediaVideoPlayer_100110411_1.0.11_HMD_0411_Release.apk)

I'ill still under my apps MXPlayer, that I suppose an hope can use with right ExternalPlayer

Code: [Select]
<player name="MXPlayerPro" type="ExternalPlayer" audio="false" video="true">
<filename>com.mxtech.videoplayer.pro</filename>
<hidexbmc>true</hidexbmc>
<playcountminimumtime>120</playcountminimumtime>
</player>

My hope it's vnish or I can try?

Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: Eriol on July 26, 2017, 11:14:05 AM
I have a question about default player on custom repo of Himedia

I have extracted your default player here recovery APK:

HimediaVideoPlayer_100110411_1.0.11_HMD_0411

http://nitroflare.com/view/0ADE1ECCE780880/HimediaVideoPlayer_100110411_1.0.11_HMD_0411_Release.apk (http://nitroflare.com/view/0ADE1ECCE780880/HimediaVideoPlayer_100110411_1.0.11_HMD_0411_Release.apk)

I'ill still under my apps MXPlayer, that I suppose an hope can use with right ExternalPlayer

Code: [Select]
<player name="MXPlayerPro" type="ExternalPlayer" audio="false" video="true">
<filename>com.mxtech.videoplayer.pro</filename>
<hidexbmc>true</hidexbmc>
<playcountminimumtime>120</playcountminimumtime>
</player>

My hope it's vnish or I can try?

Check this thread:
http://www.futeko.com/newforum/index.php?topic=1566.0 (http://www.futeko.com/newforum/index.php?topic=1566.0)
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: futeko.com on August 03, 2017, 10:17:22 AM
Opening post playercorefactory updated to reflect Eriol version.

I added the NFS/SMB source lines to try and ensure NFS gets played using wrapper, I appreciate they aren't necessary.
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: Eriol on August 03, 2017, 11:17:48 AM
Opening post playercorefactory updated to reflect Eriol version.

I added the NFS/SMB source lines to try and ensure NFS gets played using wrapper, I appreciate they aren't necessary.

Please test if the new NFS/SMB rule you added does not interfere with the mpeg2 -> VideoPlayer rule.
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: Sevaus on August 08, 2017, 05:55:23 PM
I change the playercorefactory like OP post, but wrapper it's always default player...

 I open a stream, and wrapper it's default, i can press menu bottom and select play with... to select kodiplayer  :-\

Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: luap on August 09, 2017, 04:23:41 AM
I have question
I have HiMedia Q5Pro with  firmware 2.0.4
I set up wrapper as default player.
I can play all kind blu ray  formats (iso, 3dI iso or bdmv) with pass thru  master hd , but Dvd I can play only in iso format  ts folders I have message
VIDEO PROBLEM CONFIRM
What I have to change in my setup to play ts folders

Thanks in advance
Regards
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: Sevaus on August 09, 2017, 10:29:36 AM
I change the playercorefactory like OP post, but wrapper it's always default player...

 I open a stream, and wrapper it's default, i can press menu bottom and select play with... to select kodiplayer  :-\

I have Android N with last firm 2.0.4 and kodi 17.3.
I have change file playercorefactory.xml like the OP but don't work correctly... when i open a stream wrapper it's default player.
After change playercorefactory.xml, i turn off my pc, and go to Q5 and check what player is default in stream.
Todays i open the playercorefactory and shows like this:

<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>r"/> <!--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>


There are new rules that no are in the code in OP, i don't know why or if this new rules are the culprit...
How can i change this playercorefactory to the OP one and don't chage it?
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: futeko.com on August 14, 2017, 01:54:48 PM
I change the playercorefactory like OP post, but wrapper it's always default player...

 I open a stream, and wrapper it's default, i can press menu bottom and select play with... to select kodiplayer  :-\

This is fixed in the updated version of playercorefactory in opening post.
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: gaku on November 03, 2017, 07:17:53 PM
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: speighty1 on November 03, 2017, 11:05:27 PM
How can I set the xml file so that when I press enter on my uhd iso it loads the wrapper, at the moment pressing ok on one of them does nothing, I have to select the context menu and press play using and then wrapper.

Actually just tested with anu blu-ray iso and either nothing happens or kodi plays the movie for standard blu-ray, I just want to set it so the default for iso is th wrapper and then if i need to use kodis player i can use the play using option.
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: Mount81 on May 31, 2018, 09:38:38 AM
Hello!

So I thought a brave and attempted to modify with the plan to call HibyMusic from KODI for all audio only files.

This is what I added:

Code: [Select]
<players>

<!-- HibyMusic for music -->
<player name="HibyMusic" type="ExternalPlayer" audio="true" video="false">
<filename>com.hiby.music</filename>
<hidexbmc>true</hidexbmc>
<playcountminimumtime>120</playcountminimumtime>
</player>
</players>
And the line I've modified:

Code: [Select]
<!--Audio Rules-->
<rule audio="true" player="HibyMusic" />
But It just doesn't work. I guess I would need the SMB mountpoint patch to make it work with the network shared files, but it also fails to wok from directly connected USB drives. I try to play any kind of audio files from KODI and it just doesn't do or start anything.

I guess the result would be the same with any other media or music player app (like with Poweramp and so...).

What am I missing here? Any suggestions how could i make this work (if possible at all)?

Thanks!
Title: Re: Android 7 / Kodi 17+ wrapper settings (playercorefactory)
Post by: Mount81 on June 18, 2018, 06:43:04 AM
So, no one has a clue how to make it work or what should i try with HibyMusic (or f.e. any other music player app)? (Se the upper post.)

Thanks!