[WINDOWS] Problem playing videos in a network drive with external player
#1
The sources of my Library point to network locations (written like: \\ComputerName\SharedFolder).

The files are scanned properly but the problem is when I try to play them with an external player (here's the playercorefactory.xml: http://pastebin.com/Nhyc4Cmu), that the "\" are changed to "/", thus the videos are not played.

The funny thing is that if I browse the files (not using the library), it works properly.

Any suggestion??

Here's the log when it doesn't work: http://pastebin.com/7gJApweH

Thanks!
Reply
#2
I don't believe \\computer name\share will work, as XBMC uses smb://computer name/ share. I authored a form post about adding a XBMC share at http://forum.xbmc.org/showpost.php?p=960908&postcount=5. Maybe that will help.
Reply
#3
Gr8rtek Wrote:I don't believe \\computer name\share will work, as XBMC uses smb://computer name/ share. I authored a form post about adding a XBMC share at http://forum.xbmc.org/showpost.php?p=960908&postcount=5. Maybe that will help.

Believe it or not, it works.. It works detecting files and it works playing files from the video file list. BUT it fails playing files from library.

I tried smb:// before but media player classic doesn't know what smb:// means...

Thanks for you effort, but I really know how to do networking.
Reply
#4
regi24 Wrote:Believe it or not, it works.. It works detecting files and it works playing files from the video file list. BUT it fails playing files from library.

That's a strange definition of "works".

If you set your sources up as smb://server/share/pathifrequired/ then when XBMC starts the external player it will convert the path before handing it to the external player. I've justed this and a sample log shows (I've trimmed this to show only the relevant bits):

Code:
DEBUG: CApplication::OnKey: 61520 pressed, action is Play
  DEBUG: CPlayerCoreFactory::GetPlayers(smb://ratbase/video/Pixar/1995 Toy Story.avi)
...
NOTICE: ExternalPlayer Filename: C:\win32app\mplayer\mplayer.exe
...
NOTICE: CExternalPlayer::OpenFile: smb://ratbase/video/Pixar/1995 Toy Story.avi
...
  INFO: CExternalPlayer::Process: File matched:'^smb://' (RE='/',Rep='\\') new filename:'smb:\\ratbase\video\Pixar\1995 Toy Story.avi'.
  INFO: CExternalPlayer::Process: File matched:'^smb:\\\\' (RE='smb:(\\\\[^\\]*\\)',Rep='\1') new filename:'\\ratbase\video\Pixar\1995 Toy Story.avi'.
NOTICE: CExternalPlayer::Process: Player : C:\win32app\mplayer\mplayer.exe
NOTICE: CExternalPlayer::Process: File   : \\ratbase\video\Pixar\1995 Toy Story.avi
NOTICE: CExternalPlayer::Process: Content:
NOTICE: CExternalPlayer::Process: Args   : "{1}"
NOTICE: CExternalPlayer::Process: Start
...
NOTICE: CExternalPlayer::ExecuteAppW32: C:\win32app\mplayer\mplayer.exe "C:\win32app\mplayer\mplayer.exe" "\\ratbase\video\Pixar\1995 Toy Story.avi"

JR
Reply
#5
I've removed the database, installed last Eden nightly and now it's working fine with smb://.
ALso, in the previous setup, I added user and pass to the smb path. Now I haven't.. I don't know what's actually done the difference..
Reply

Logout Mark Read Team Forum Stats Members Help
[WINDOWS] Problem playing videos in a network drive with external player0