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)



- jmarshall - 2009-01-29

@navy1978:

Quote:My version is the last downloaded from xbmc officila site (8.10) yesterday...

You need the version from this thread.


- jmarshall - 2009-01-29

@taxigps

Use the built in functions for that: g_charsetConverter.utf8ToW()


- taxigps - 2009-01-29

why my link file XBMC.exe so big:16.5M. Jester's file only 8.15M
SadSadSad


- taxigps - 2009-01-29

jmarshall Wrote:@taxigps

Use the built in functions for that: g_charsetConverter.utf8ToW()

I use the functions like is:

Quote:void CExternalPlayer::ExecuteAppW32(const char* strPath, const char* strSwitches)
{
CLog::Log(LOGNOTICE, "%s: %s %s", __FUNCTION__, strPath, strSwitches);

STARTUPINFOW si;
PROCESS_INFORMATION pi;
memset(&si, 0, sizeof(si));
memset(&pi, 0, sizeof(pi));
si.cb = sizeof(si);
si.dwFlags = STARTF_USESHOWWINDOW;

CStdStringW WstrPath;
g_charsetConverter.utf8ToW(strPath, WstrPath);
CStdStringW WstrSwitches;
g_charsetConverter.utf8ToW(strSwitches, WstrSwitches);

if (g_advancedSettings.m_externalPlayerHideconsole)
{
si.wShowWindow=SW_HIDE;
}
else
{
si.wShowWindow=SW_SHOW;
}
int ret = CreateProcessW(WstrPath.c_str(), (LPWSTR) WstrSwitches.c_str(), NULL, NULL, FALSE, NULL,
NULL, NULL, &si, &pi);

This work fine too,Is that rignt?


- jmarshall - 2009-01-29

Yep - that'll be just fine.

You're probably building debug.


- navy1978 - 2009-01-29

jmarshall Wrote:@navy1978:



You need the version from this thread.

Thak you for answer... Can you please give me the link to this version?
Or i must download it fron svn and build myself? if the answare is the last can you give me some suggestion to do this?

Thanks in advance

Navy1978


- ashlar - 2009-01-29

navy1978 Wrote:Thak you for answer... Can you please give me the link to this version?


here

.


- flxfxp - 2009-01-29

Forgive me my n00bness, but could anyone post their advancedsettings.xml that works best for MPC-HC?

Much appreciated,

Dennis


- flxfxp - 2009-01-29

I get:

Code:
20:31:04 T:2584 M:571379712  NOTICE: Mapping drive Z to C:\Documents and Settings\FLX\Application Data\XBMC\cache
20:31:04 T:2584 M:571359232  NOTICE: Mapping drive T to C:\Documents and Settings\FLX\Application Data\XBMC\userdata
20:31:04 T:2584 M:571359232  NOTICE: Mapping drive Q to C:\Program Files\XBMC
20:31:04 T:2584 M:571359232  NOTICE: Mapping drive U to C:\Program Files\XBMC
20:31:04 T:2584 M:571236352  NOTICE: -----------------------------------------------------------------------
20:31:04 T:2584 M:571224064  NOTICE: Starting XBMC, Platform: Windows XP Professional Service Pack 3 build 2600.  Built on Jan 26 2009 (SVN:17368, compiler 1500)
20:31:04 T:2584 M:571224064  NOTICE: AMD Athlon(tm) 64 Processor 4000+
20:31:04 T:2584 M:571219968  NOTICE: Desktop Resolution: 1280x1024 32Bit at 60Hz
20:31:04 T:2584 M:571219968  NOTICE: Q is mapped to: C:\Program Files\XBMC
20:31:04 T:2584 M:571219968  NOTICE: The executable running is: C:\Program Files\XBMC\XBMC.exe
20:31:04 T:2584 M:571219968  NOTICE: Log File is located: C:\Documents and Settings\FLX\Application Data\XBMC\xbmc.log
20:31:04 T:2584 M:571219968  NOTICE: -----------------------------------------------------------------------
20:31:04 T:2584 M:571199488  NOTICE: Setup SDL
20:31:04 T:2584 M:569909248  NOTICE: load settings...
20:31:04 T:2584 M:569901056  NOTICE: Mapping drive P to C:\Documents and Settings\FLX\Application Data\XBMC\userdata
20:31:04 T:2584 M:569892864  NOTICE: loading C:\Documents and Settings\FLX\Application Data\XBMC\userdata\guisettings.xml
20:31:04 T:2584 M:569667584  NOTICE: Getting hardware information now...
20:31:04 T:2584 M:569667584  NOTICE: Checking resolution 12
20:31:04 T:2584 M:569638912  NOTICE: No advancedsettings.xml to load (C:\Documents and Settings\FLX\Application Data\XBMC\userdata\advancedsettings.xml)
20:31:04 T:2584 M:569638912  NOTICE: Default Video Player: dvdplayer
20:31:04 T:2584 M:569638912  NOTICE: Default Audio Player: paplayer
20:31:04 T:2584 M:569651200  NOTICE: C:\Documents and Settings\FLX\Application Data\XBMC\userdata\sources.xml
20:31:04 T:2584 M:558346240  NOTICE: start dvd mediatype detection
20:31:04 T:2584 M:558329856  NOTICE: initializing playlistplayer
20:31:04 T:2584 M:558325760  NOTICE: DONE initializing playlistplayer
20:31:04 T:2584 M:558317568  NOTICE: load default skin:[PM3.HD]
20:31:05 T:2584 M:554250240  NOTICE: initialize done
20:31:05 T:2584 M:554307584  NOTICE: Running the application...
20:31:05 T:2584 M:553803776  NOTICE: ES: Starting event server
20:31:05 T:1016 M:553000960  NOTICE: ES: Starting UDP Event server on 127.0.0.1:9777
20:31:05 T:1016 M:552996864  NOTICE: UDP: Listening on port 9777
20:31:07 T:2584 M:549953536 WARNING: CUtil::GetMatchingSource... no matching source found for [Video Plugins]
20:31:24 T:2584 M:538750976  NOTICE: CExternalPlayer::OpenFile: D:\Movies\Appleseed.2004.DVDRip.XviD.AC3-NDRT\CD1\Appleseed.2004.DVDRip.XviD.AC3-NDRT.CD1.avi
20:31:24 T:2800 M:538742784  NOTICE: CExternalPlayer:Filename:
20:31:24 T:2800 M:538738688  NOTICE: CExternalPlayer:Args:
20:31:24 T:2800 M:538738688  NOTICE: CExternalPlayer:Default Audio Player: paplayer
20:31:24 T:2800 M:538738688  NOTICE: CExternalPlayer:Default Video Player: dvdplayer
20:31:24 T:2800 M:538738688  NOTICE: CExternalPlayer:Process: Start
20:31:24 T:2800 M:538722304  NOTICE: CExternalPlayer::ExecuteAppW32:  ""  "D:\Movies\Appleseed.2004.DVDRip.XviD.AC3-NDRT\CD1\Appleseed.2004.DVDRip.XviD.AC3-NDRT.CD1.avi"
20:31:24 T:2800 M:538722304  NOTICE: CExternalPlayer::ExecuteAppW32 - Failure: 0
20:31:24 T:2800 M:538722304  NOTICE: CExternalPlayer:Process: Stop
20:31:29 T:2584 M:534368256  NOTICE: Storing total System Uptime
20:31:29 T:2584 M:534368256  NOTICE: Saving settings
20:31:29 T:2584 M:534315008  NOTICE: stop all
20:31:29 T:2584 M:534315008  NOTICE: ES: Stopping event server
20:31:29 T:1016 M:534347776  NOTICE: ES: UDP Event server stopped
20:31:29 T:2584 M:534380544  NOTICE: stop dvd detect media
20:31:29 T:2584 M:534405120  NOTICE: stop sap announcement listener
20:31:29 T:2584 M:534405120  NOTICE: clean cached files!
20:31:29 T:2584 M:534401024  NOTICE: unload skin
20:31:29 T:2584 M:549335040  NOTICE: stop python
20:31:29 T:2584 M:549335040  NOTICE: stopped
20:31:29 T:2584 M:549335040  NOTICE: destroy
20:31:29 T:2584 M:550121472  NOTICE: unload sections

Config:
Code:
<advancedsettings>
<video>
  <defaultplayer>externalplayer</defaultplayer>
</video>
<audio>
  <defaultplayer>externalplayer</defaultplayer>
</audio>
<externalplayer>
  <filename>C:\Program Files\Combined Community Codec Pack\MPC\mplayerc.exe</filename>
  <args>-fs</args>
  <forceontop>false</forceontop>
  <hidexbmc>false</hidexbmc>
  <hideconsole>false</hideconsole>
  <hidecursor>false</hidecursor>
</externalplayer>
</advancedsettings>

Help anyone? I'm using XBMCSetup-Rev17368-jester-ext.exe


- moby-uk - 2009-01-29

@flxfxp

In the log you posted is
Quote:20:31:04 T:2584 M:569638912 NOTICE: No advancedsettings.xml to load (C:\Documents and Settings\FLX\Application Data\XBMC\userdata\advancedsettings.xml)

which suggests you have your advancedsettings.xml in the wrong place; it should be in the path listed above.


- flxfxp - 2009-01-29

Thanks moby-uk, sorry i missed something that simple Smile


- moby-uk - 2009-01-29

jmarshall Wrote:@taxigps

Use the built in functions for that: g_charsetConverter.utf8ToW()

jmarshall Wrote:Yep - that'll be just fine.

@jmarshall

Is this OK to do in general or should it only be done for a UNICODE build (i.e. #ifdef UNICOCDE)?

I'm still not completely happy with just delaying locking the graphics context for 1 second to workaround the window-stacking issues. It isn't 100% reliable for me on slow hardware.

I have a version of the patch that prevents user-interaction with XBMC whilst the externalplayer is active by showing a modal (OK) dialog instead of locking the context; pressing OK terminates the spawned process, or the dialog is closed when the process ends. I'll add this to the ticket, I'd really appreciate if someone else could take a look at this.


- jmarshall - 2009-01-29

The WCHAR implementation should be enabled in all builds.


- Jester - 2009-01-30

I've upped a new build with the latest patch from moby-uk
XBMCSetup-Rev17458-jester-ext.exe


- THX-UltraII - 2009-01-30

So, ive downloaded the version XBMCSetup-Rev17458-jester-ext.exe 30-Jan-2009 10:10. However, MPC HC still will not run. Only the internal player start running. MPC HC is stored here on my HDD C:\Program Files\MPC HomeCinema\mplayerc.exe.

I ve made a file called advancedsettings.xml in the dir. C:\Documents and Settings\sander\Application Data\XBMC\userdata. The file contains the following information:
Quote:<externalplayer>
<filename>c:\program files\media player classic\mplayerc.exe</filename>
<args>-fullscreen</args>
<forceontop>true</forceontop>
<hidexbmc>true</hidexbmc>
<hideconsole>false</hideconsole>
<hidecursor>false</hidecursor>
</externalplayer>

also tried it with this information:
Quote:<advancedsettings>
<video>
<defaultplayer>externalplayer</defaultplayer>
</video>
<externalplayer>
<filename>c:\program files\media player classic\mplayerc.exe</filename>
<args>-fs</args>
<forceontop>false</forceontop>
<hideconsole>false</hideconsole>
<hidecursor>false</hidecursor>
</externalplayer>
</advancedsettings>

None of them seems to work. HELP HERE NEEDED! Nod

thanks guys


This forum uses Lukasz Tkacz MyBB addons.