Another External Player Code, but Very Simple to Setup

  Thread Rating:
  • 9 Votes - 4.11 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
yallah Offline
Senior Member
Posts: 145
Joined: May 2011
Reputation: 0
Location: Cannes, France
Post: #31
Hi,

No possibility to close external program automaticly when we start audio thru XBMC player audio ?
find quote
bluray Offline
Posting Freak
Posts: 7,575
Joined: May 2011
Reputation: 139
Post: #32
yallah Wrote:Hi,

No possibility to close external program automaticly when we start audio thru XBMC player audio ?
I'm I missing something? If you use XBMC to playback MP3 music or review JPG photo, it should not have anything to do with external player. If you use my latest (playercorefactory.xml) to playback MP3/JPG, the external player should never launch.

>Alienware X51- do it all HTPC
>Simplify XBMC configurations
>HOW-TO Bitstreaming using XBMC
I refused to watch movie without bitstreaming HD audio!
find quote
yallah Offline
Senior Member
Posts: 145
Joined: May 2011
Reputation: 0
Location: Cannes, France
Post: #33
Ok but if i play movie with external player and play music track directly without stop film (by json request) what happen with your (playercorefactory.xml)

bluray Wrote:I'm I missing something? If you use XBMC to playback MP3 music or review JPG photo, it should not have anything to do with external player. If you use my latest (playercorefactory.xml) to playback MP3/JPG, the external player should never launch.
(This post was last modified: 2012-01-03 19:54 by yallah.)
find quote
Grinsekatze Offline
Junior Member
Posts: 27
Joined: Jan 2012
Reputation: 0
Post: #34
Hm, somehow my solution (according to the one posted here) is not working.

I made a file called C:\Users\Grinsekatze\AppData\Roaming\XBMC\userdata\playercorefactory.xml with the following content:
PHP Code:
<playercorefactory>
  <
players>
    <
player name="PDVDPlayerIso" type="ExternalPlayer" audio="false" video="true">
      <
filename>%PROGRAMFILES(X86)%\XBMC\playiso.cmd</filename>
      <
args>"{1}" /fullscreen /close</args>
      <
hidexbmc>false</hidexbmc>
      <
hideconsole>true</hideconsole>
      <
warpcursor>none</warpcursor>
    </
player>
    <
player name="PDVDPlayerDisc" type="ExternalPlayer" audio="false" video="true">
      <
filename>%PROGRAMFILES(X86)%\XBMC\playdisc.cmd</filename>
      <
args>"{1}" /fullscreen /close</args>
      <
hidexbmc>false</hidexbmc>
      <
hideconsole>true</hideconsole>
      <
warpcursor>none</warpcursor>
    </
player>
  </
players>
  <
rules>
    <
rule filetypes="iso" filename=".*bluray.*" player="PDVDPlayerIso">
    <
rule name="Blu-Ray" protocols="bd" player="PDVDPlayerDisc">
  </
rules>
</
playercorefactory

I also made two other files called playiso.cmd:
PHP Code:
"%PROGRAMFILES(X86)%\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d="%1"
choice /C y /T 5 /D y nul
"%PROGRAMFILES(X86)%\CyberLink\PowerDVD11\PowerDVD11.exe" "G:\BDMV\index.object"
"%PROGRAMFILES(X86)%\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" 
/d=/

And playdisc.cmd:
PHP Code:
"%PROGRAMFILES(X86)%\CyberLink\PowerDVD11\PowerDVD11.exe" "G:\BDMV\index.object" 

I use PowerDVD11 Ultra with latest patch, Windows 7 Ultimate x64 with latest updates, XBMC 10.1 and AnyDVD HD 6.8.9.0.

But when I hit an iso (ex the_smurfs.bluray.iso) (playiso.cmd) or when I try to access a disc (to test playdisc.cmd) I get an error from xbmc.
The Error that appears when I try to playback a disc: "DVD drive - Please insert disc". When I try to play an Blu-ray iso nothing happenes.

So I tried the scripts without xbmc.
The result: playiso works. The iso is mounted, powerdvd starts andn plays the movie. when I close the player the iso gets unmounted. But playdisc is not working propper. Powerdvd starts but doesn't play the disc automatically.
I found out by luck when I insert the disc some seconds before I start the playdisc script the disc will be played automatically. So I assume it's a problem of powerdvd and that it only autoplays just inserted movies but not movies that are already in the drive for hours.

Can someone help me please?
Grinsekatze
find quote
bluray Offline
Posting Freak
Posts: 7,575
Joined: May 2011
Reputation: 139
Post: #35
yallah Wrote:Ok but if i play movie with external player and play music track directly without stop film (by json request) what happen with your (playercorefactory.xml)
I never thought of watching movie and listen to music at the same time. My brain can only watch and listen to one thing at a time. Big Grin

>Alienware X51- do it all HTPC
>Simplify XBMC configurations
>HOW-TO Bitstreaming using XBMC
I refused to watch movie without bitstreaming HD audio!
find quote
yallah Offline
Senior Member
Posts: 145
Joined: May 2011
Reputation: 0
Location: Cannes, France
Post: #36
sure Smile
Sorry certainly i don't explain you nicely.

It's for that. I want stop automaticly external prog when i choose music (XBMC player) via Ipad remote.
bluray Wrote:I never thought of watching movie and listen to music at the same time. My brain can only watch and listen to one thing at a time. Big Grin
find quote
bluray Offline
Posting Freak
Posts: 7,575
Joined: May 2011
Reputation: 139
Post: #37
Grinsekatze Wrote:Can someone help me please?
Grinsekatze
You can download and use the exact codes I listed below:

1. playercorefactory.xml
2. PlayDisc
3. PlayBDMV
4. PalyISO

Note- You can simply change the correct PowerDVD 11 directories in PlayDisc, PlayBDMV, PlayISO and Playercorefacoty. Where ever you place PlayDisc, PlayBDMV and PlayISO files, you'll need to enter the correct directories for these three players in Playercorefactory. I'm recommending using "PDVDLaunchPolicy.exe" instead of "PowerDVD11.exe". Smile

>Alienware X51- do it all HTPC
>Simplify XBMC configurations
>HOW-TO Bitstreaming using XBMC
I refused to watch movie without bitstreaming HD audio!
find quote
bluray Offline
Posting Freak
Posts: 7,575
Joined: May 2011
Reputation: 139
Post: #38
yallah Wrote:sure Smile
Sorry certainly i don't explain you nicely.

It's for that. I want stop automaticly external prog when i choose music (XBMC player) via Ipad remote.
When I have time, I'll try to come up with the code for you. For now, you can simply stop the movie before listen to music! Smile

>Alienware X51- do it all HTPC
>Simplify XBMC configurations
>HOW-TO Bitstreaming using XBMC
I refused to watch movie without bitstreaming HD audio!
find quote
yallah Offline
Senior Member
Posts: 145
Joined: May 2011
Reputation: 0
Location: Cannes, France
Post: #39
Oh Perfect !!!
Thx


bluray Wrote:When I have time, I'll try to come up with the code for you. For now, you can simply stop the movie before listen to music! Smile
find quote
Grinsekatze Offline
Junior Member
Posts: 27
Joined: Jan 2012
Reputation: 0
Post: #40
Hm, I installed TMT5 to test it. My scripts are working without xbmc from plain windows. Here also the movie is autoplayed after I lunch the scripts.

But still: In xbmc when I try to load the inserted disc (it's mounted with virtual clonedrive because atm I don't have a blu-ray drive) I only get an error message telling me "DVD drive - Please insert disc". When I try to load the iso nothing happenes and when I try to reload it I also get an error telling me that it's not working.

I'll give your scripts a try now. Thanks.

Edit:
Ok, I checked your version with TMT5 but same problems under xbmc like before.
I tried to use deamon tools instead of virtual clonedrive to test the disc ability. Now the error is gone but instead of playing the disc I navigate through the filesystem from that disc. I'm confused.
(This post was last modified: 2012-01-03 23:03 by Grinsekatze.)
find quote
Post Reply