Kodi Community Forum
[WINDOWS] External Player Support Thread - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Windows (https://forum.kodi.tv/forumdisplay.php?fid=59)
+---- Thread: [WINDOWS] External Player Support Thread (/showthread.php?tid=43511)



- Zodler - 2010-12-13

That doesn't help very much. Yes I know that in order to exit a program, you kill the process, but how?

The question is simple, how to kill XBMC after launching an external player?


- vandelay - 2010-12-13

Okay...here's a question...
Is there a set of arguments or really any way to setup playercorefactory to use a specific player if 2 or more subtitle files are present in the folder?


- Jay_M - 2011-01-05

I am trying to start TMT3 when a Bluray disc is in the bluray drive. I have followed the instructions here and here minus the reclock portion.

It opens TMT3, however TMT3 gives an error dialog "The disc cannot be played". If I then select the Bluray drive from within TMT3 the disc will play, I can exit and return to XBMC without issues.

This is the relevant portion of my log
Code:
10:56:11 T:2596 M:1176752128  NOTICE: ExternalPlayer Filename: C:\Program Files\ArcSoft\TotalMedia Theatre 3\uDTStart.exe
10:56:11 T:2596 M:1176752128  NOTICE: ExternalPlayer Tweaks: hideconsole (false), hidexbmc (false), islauncher (false), warpcursor (topright)
10:56:11 T:2596 M:1176748032  NOTICE: CExternalPlayer::OpenFile: bd://1
10:56:11 T:3144 M:1176748032  NOTICE: CExternalPlayer::Process: Player : C:\Program Files\ArcSoft\TotalMedia Theatre 3\uDTStart.exe
10:56:11 T:3144 M:1176748032  NOTICE: CExternalPlayer::Process: File   : bd://1
10:56:11 T:3144 M:1176748032  NOTICE: CExternalPlayer::Process: Content:
10:56:11 T:3144 M:1176748032  NOTICE: CExternalPlayer::Process: Args   : "d:\"
10:56:11 T:3144 M:1176748032  NOTICE: CExternalPlayer::Process: Start
10:56:11 T:3144 M:1176748032  NOTICE: CExternalPlayer::Process: Releasing audio device 2
10:56:11 T:3144 M:1178087424  NOTICE: CExternalPlayer::Process: Warping cursor to (1440,0)
10:56:11 T:3144 M:1178087424  NOTICE: CExternalPlayer::ExecuteAppW32: C:\Program Files\ArcSoft\TotalMedia Theatre 3\uDTStart.exe "C:\Program Files\ArcSoft\TotalMedia Theatre 3\uDTStart.exe" "d:\" "bd://1"
10:56:11 T:2596 M:1176092672 WARNING: XFILE::CFileFactory::CreateLoader - Unsupported protocol(bd) in bd://movie.tbn/
10:56:12 T:3144 M:1172144128  NOTICE: CExternalPlayer::ExecuteAppW32: WAIT_OBJECT_0
10:56:30 T:3144 M:1171181568  NOTICE: CExternalPlayer::Process: Stop
10:56:30 T:3144 M:1171181568  NOTICE: CExternalPlayer::Process: Showing XBMC window

The issue is XBMC always attaches the "bd://1" to the executable call. I have tried several combinations in the <args> tags but I do not know how to remove the "bd://1"

My playercorefactory.xml

Code:
<playercorefactory>
  <players>
    <player name="TMTMCEPlayer" type="ExternalPlayer" audio="false" video="true">
      <filename>C:\Program Files\ArcSoft\TotalMedia Theatre 3\uDTStart.exe</filename>
      <args>d:\</args>
      <hidexbmc>false</hidexbmc>
      <hideconsole>false</hideconsole>
      <warpcursor>topright</warpcursor>
    </player>
    <player name="IE" type="ExternalPlayer">
     <filename>c:\Program Files\Internet Explorer\iexplore.exe</filename>
     <args>-k "{1}"</args>
     <hidexbmc>false</hidexbmc>
     <hideconsole>false</hideconsole>
     <warpcursor>none</warpcursor>
    </player>

  </players>
  <rules action="prepend">
    <rule name="Blu-Ray" protocols="bd" player="TMTMCEPlayer"/>
    <rule name="html" filetypes="html" player="IE" />
  </rules>
</playercorefactory>

I am running dharma 10.0 on Windows 7 32bit. Thanks for your help.



UPDATE
--------------------------
I have gotten the external player to work. I changed my playercorefactory to:
Code:
<player name="TMTMCEPlayer" type="ExternalPlayer" audio="false" video="true">
      <filename>C:\Program Files\ArcSoft\TotalMedia Theatre 3\uDTStart.exe</filename>
      <args>"{2}" d:\</args>
      <hidexbmc>false</hidexbmc>
      <hideconsole>true</hideconsole>
      <warpcursor>topright</warpcursor>
    </player>

in the <args> tag I added the "{2}" before d:\

Now my logfile looks like

Code:
15:25:40 T:1092 M:1242763264  NOTICE: ExternalPlayer Filename: C:\Program Files\ArcSoft\TotalMedia Theatre 3\uDTStart.exe
15:25:40 T:1092 M:1242763264  NOTICE: ExternalPlayer Tweaks: hideconsole (true), hidexbmc (false), islauncher (false), warpcursor (topright)
15:25:40 T:1092 M:1242759168  NOTICE: CExternalPlayer::OpenFile: bd://1
15:25:40 T:1092 M:1242759168   DEBUG: CGUIAudioManager::DeInitialize
15:25:40 T:2328 M:1242759168   DEBUG: thread start, auto delete: 0
15:25:40 T:2328 M:1242759168  NOTICE: CExternalPlayer::Process: Player : C:\Program Files\ArcSoft\TotalMedia Theatre 3\uDTStart.exe
15:25:40 T:2328 M:1242759168  NOTICE: CExternalPlayer::Process: File   : bd://1
15:25:40 T:2328 M:1242759168  NOTICE: CExternalPlayer::Process: Content:
15:25:40 T:2328 M:1242759168  NOTICE: CExternalPlayer::Process: Args   : "{2}" d:\
15:25:40 T:2328 M:1242759168  NOTICE: CExternalPlayer::Process: Start
15:25:40 T:2328 M:1242759168  NOTICE: CExternalPlayer::Process: Releasing audio device 2
15:25:40 T:2328 M:1242759168   DEBUG: CAudioContext::SetActiveDevice - SetActiveDevice from 2 to 0
15:25:40 T:2328 M:1242759168   DEBUG: CAudioContext::RemoveActiveDevice - Removing device 2
15:25:40 T:1092 M:1242755072   DEBUG: CAnnouncementManager - Announcement: PlaybackStarted from xbmc
15:25:40 T:1092 M:1242726400   DEBUG: CApplication::ExecuteXBMCAction : Translating Dialog.Close(1113)
15:25:40 T:1092 M:1242726400   DEBUG: CApplication::ExecuteXBMCAction : To Dialog.Close(1113)
15:25:40 T:2328 M:1239314432  NOTICE: CExternalPlayer::Process: Warping cursor to (1920,0)
15:25:40 T:2328 M:1239314432   DEBUG: CExternalPlayer::Process: Unlocking foreground window
15:25:40 T:2328 M:1239314432  NOTICE: CExternalPlayer::ExecuteAppW32: C:\Program Files\ArcSoft\TotalMedia Theatre 3\uDTStart.exe "C:\Program Files\ArcSoft\TotalMedia Theatre 3\uDTStart.exe" "" d:\
15:25:40 T:1092 M:1241284608   DEBUG: CGUIInfoManager::SetCurrentMovie(bd://1)
15:25:40 T:1092 M:1241182208 WARNING: XFILE::CFileFactory::CreateLoader - Unsupported protocol(bd) in bd://movie.tbn/
15:25:40 T:1092 M:1241108480   DEBUG: ------ Window Deinit (custom_DiscDialog_1113.xml) ------
15:25:40 T:2328 M:1240862720  NOTICE: CExternalPlayer::ExecuteAppW32: WAIT_OBJECT_0

I haven't seen the playercorefactory setup like this anywhere in the forums, so I am not sure if it is correct. Let me know why I had to make this modification to make it work. Maybe I found a bug, or have something configured wrong.


- eskro - 2011-01-11

Hi guys!

I've been able to set MPC-HC as External Player

But, when i select a movie to watch,

XBMC minimizes and then MPC-HC launches and the movie starts playing...

My question is,

is there a way to prevent/stop XBMC from minimizing??

i just want it to stay where it is.......

i dont like to see my desktop even if its for a second Tongue



thanks!!!


- Jay_M - 2011-01-14

In playercorefactory.xml set <hidexbmc>false</hidexbmc>


- tco42 - 2011-01-14

Is there also a python command to tell xbmc to hide?
I have exactly the same problem but not with an external player but with programs that are started by advanced launcher.


- eskro - 2011-01-14

was already set false....


- stealth82 - 2011-01-15

eskro Wrote:was already set false....
Same problem here...


- stealth82 - 2011-01-15

Jay_M Wrote:I haven't seen the playercorefactory setup like this anywhere in the forums, so I am not sure if it is correct. Let me know why I had to make this modification to make it work. Maybe I found a bug, or have something configured wrong.
I dont' believe it's the right behavior. To me it's a bug.


- Flotto85 - 2011-01-16

Hi all,

I just started playing around with XBMC and have some Problems with using PowerDVD (Cinema) as an external player for blurays.
I configured the playcorefactory.xml and when I'm starting a bluray from within xbmc PowerDVD starts as expected but the movie doesn't run fluid. As soon as I close XBMC in the background the movie plays normal again.
Has anyone had similar problems or is there some setting I don't know yet?

playcorefactory.xml:

<playercorefactory>
<players>
<player name="DVDPlayer" audio="true" video="true" />
<player name="DVDPlayer" />
<player name="PAPlayer" audio="true" />
<player name="PowerDVD" type="ExternalPlayer" audio="false" video="false">
<filename>C:\Program Files\CyberLink\PowerDVD10\PowerDVD Cinema\PowerDVDCinema10.exe</filename>
<args>PowerDVD</args>
<hidexbmc>false</hidexbmc>
<hideconsole>false</hideconsole>
<hidecursor>false</hidecursor>
<forceontop>false</forceontop>
</player>
</players>
<rules action="prepend">
<rule name="Blu-Ray" protocols="bd" player="PowerDVD"/>
</rules>
</playercorefactory>

System:

Windows 7 (x86)
Core i3 (integrated GPU)
XBMC 10.0
PwerDVD 10 Ultra


- eskro - 2011-01-16

try to replace --> <args>PowerDVD</args>

with --> <args>"{1}" /fullscreen /close</args>


- Flotto85 - 2011-01-18

Thanks for the hint, but setting hidexbmc to true solved it already.
I need the PowerDVD arg because I'm not starting PowerDVD directly because I need to change the refreh rate first.


- SnowDog65 - 2011-01-22

I have no problem adding an external player.

But I do have a problem getting it to launch on the right monitor.

I set XBMC to display on monitor 2 (my HDTV) this works fine, when using it's internal player, it will show it on Mon2/HDTV.

But when I play a movie with my external player, it launches back onto monitor 1 and not my TV where I am running XBMC.

How do I get XBMC to launch the external player on my Mon2/HDTV instead of my main monitor?


- eskro - 2011-01-22

i think it may be towards your external player you need to look...

i know theres applications like UltraMonitor that manages Multi-Monitor stuff in general,,,

have a look at it, im sure there's a setting in there
to have certain applications open on the 1st or 2nd monitor...

i think you can even change which monitor is the primary and which is secondary....
so you could make your HDTV the primary monitor and see how it goes for ya!


- SnowDog65 - 2011-01-23

eskro Wrote:i think it may be towards your external player you need to look...

i know theres applications like UltraMonitor that manages Multi-Monitor stuff in general,,,

I was hoping for an XBMC launch parameter. Since XBMC was already on monitor 2, I thought what it launched would also be on monitor 2.

Also I don't always want my external player always on my TV, only when it launches from XBMC.

So I nothing to control it then?