Win HOW TO - Kodi 2D - 3D - UHD (4k) HDR Guide Internal & External Players ISO Menus
Hoping also it gets accepted, so WAF goes higher regarding 4K at home [emoji3]

It took a couple of hours to understand/debug the ApplicationPlayer.cpp and PlayerCoreFactory.cpp.
That's the workflow:

1. call to ApplicationPlayer.cpp OpenFile() with the new item

2. ApplicationPlayer.cpp executes PlayerCoreFactory.cpp GetDefaultPlayer() function to retrieve the player name for the item which should be played. There, your rules was matched and so on...
The correct matched player name always was returned.
So the issue is was not here.

3. now the current/last used player was retrieved todo some stuff in video player without closing it.

4. if that was null, a new player was created, the one with the before matched rules

5. new file was loaded in this player

You see, the issue is that ALWAYS the last player is used, because it never is null.

I have now added the following between 3 & 4:

3.5 when the last player name differs from new one (matched with rules), the last gets unloaded. Then under 4, the player is null and the new one gets created and finally the file loaded into the new player.

Hope this makes sense [emoji13]
pOpY
Reply


Messages In This Thread
RE: Kodi 3D Guide - by brazen1 - 2015-06-15, 22:20
RE: Kodi 3D Guide - by brazen1 - 2015-06-15, 22:29
RE: Kodi 3D Guide - by michaelsammler - 2015-06-22, 00:38
RE: Kodi 3D Guide - by brazen1 - 2015-06-23, 17:15
RE: Kodi 3D Guide - by michaelsammler - 2015-06-24, 02:23
RE: Kodi 3D Guide - by brazen1 - 2015-06-24, 17:22
RE: Kodi 3D Guide - by michaelsammler - 2015-06-25, 09:26
HOW TO - Kodi 2D - 3D - UHD (4k) HDR Guide Internal & External Players - by popy - 2018-08-11, 23:59
HELP! - by brazen1 - 2018-08-22, 18:50
RE: HELP! - by zxaura1 - 2018-08-24, 09:32
Problem with DXVA scaling videos - by obstler - 2018-10-27, 10:13
Logout Mark Read Team Forum Stats Members Help
HOW TO - Kodi 2D - 3D - UHD (4k) HDR Guide Internal & External Players ISO Menus39