(2015-05-18, 20:50)rmilyard Wrote: This is the code I am trying right now:
powercorefactory:
Code:
<playercorefactory>
<players>
<player name="ISO_BDMV_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Ray\AppData\Roaming\Kodi\userdata\PlayISO.bat</filename>
<args>"{1}"</args>
<hidexbmc>false</hidexbmc>
<hideconsole>True</hideconsole>
<warpcursor>none</warpcursor>
</player>
</players>
<rules action="prepend">
<!-- Bluray ISO -->
<!-- Bluray ISO/BDMV -->
<rule filetypes="iso|bdmv|mpls" player="ISO_BDMV_Player"/>
</rules>
</playercorefactory>
PlayISO.bat:
Code:
Set file=%1
Set dummy=%file:iso=%
IF NOT %dummy% == %file% (GOTO playiso) ELSE (goto next)
:next
Set file=%1
Set dummy=%file:mpls=%
IF NOT %dummy% == %file% (GOTO plaympls) ELSE (goto playbdmv)
:playiso
"D:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 %1
"C:\Program Files (x86)\CyberLink\PowerDVD15\Movie\PowerDVD Cinema\PowerDVDCinema.exe" H:
"D:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 /u
GOTO end
:plaympls
set pth=%1
set pth=%pth:~1,-25%
"C:\Program Files (x86)\CyberLink\PowerDVD15\Movie\PowerDVD Cinema\PowerDVDCinema.exe" "%pth%" exit
GOTO end
:playbdmv
set pth=%1
set pth=%pth:BDMV\MovieObject.bdmv=%
set pth=%pth:BDMV\index.bdmv=%
"C:\Program Files (x86)\CyberLink\PowerDVD15\Movie\PowerDVD Cinema\PowerDVDCinema.exe" %pth% exit
GOTO end
:end
exit
When it runs the iso mounts and PowerDVDCinema starts. However it's not playing the H: drive. I am getting this:
As you can see it's looking at H: drive. Then I need to click the mouse and I will get this screen:
From here if I select H: this screen comes up:
If I click restart all works.
Also when I stop the movie it doesn't clock PowerDVD. I would like it to close to go back to Kodi.
If anyone knows what I might be doing wrong that would be great!
I've already told you, DONT USE THE CINEMA EXE FILE!!! If you bothered listening to what I said it should work. I had the exactly the same issues you are experiencing. As you are trying to use PDVD15 (I'm using PDVD14), the code needs to be changed from 14 to 15 & E: to H: (your virtual drive).
Try this, it should be fine.
Playercore Code
<playercorefactory>
<players>
<player name="PowerDVD" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Ray\AppData\Roaming\Kodi\userdata\PowerDVD.bat</filename>
<args>"{1}"</args>
<hidekodi>false</hidekodi>
</player>
</players>
<rules action="prepend">
<rule filetypes="iso|bdmv|mpls" player="PowerDVD"/>
</rules>
</playercorefactory>
BAT File
Set file=%1
Set dummy=%file:iso=%
IF NOT %dummy% == %file% (GOTO playiso) ELSE (goto next)
:next
Set file=%1
Set dummy=%file:mpls=%
IF NOT %dummy% == %file% (GOTO plaympls) ELSE (goto playbdmv)
:playiso
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 %1
"C:\Program Files (x86)\Cyberlink\PowerDVD15\PowerDVD.exe" H:
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 /u
GOTO end
:plaympls
set pth=%1
set pth=%pth:~1,-25%
"C:\Program Files (x86)\Cyberlink\PowerDVD15\PowerDVD.exe" "%pth%" exit
GOTO end
:playbdmv
set pth=%1
set pth=%pth:BDMV\MovieObject.bdmv=%
set pth=%pth:BDMV\index.bdmv=%
"C:\Program Files (x86)\Cyberlink\PowerDVD15\PowerDVD.exe" %pth% exit
GOTO end
:end
exit