PDA

View Full Version : How to add Eject DVD Option?


xfiring
2009-03-31, 15:24
When I go into advanced settings and add DVD drive everything works, however, there is no option to 'eject' the disc. This seems weird. Am I totally missing something? If not, how do you add a command to eject the disc?

I am looking for something like, when you select the disc the option will be 'play or eject' similar to frontrow?

CHI3f
2009-03-31, 18:58
Read this. (http://xbmc.org/wiki/?title=List_of_Built_In_Functions)

xfiring
2009-04-01, 00:22
Thanks for the link, but I am not entirely sure how to and/or what XML file to put this in? Do I put the <onclick>EjectTray()</onclick> on the home.xml or in the keymap file?

Any advice would be greatly appreciated.

Thanks.

xfiring
2009-04-01, 02:30
OK, I think I see where I would add the onclick on the home.xml file, however, how do I create something like this.

onclick ->bring up a selection menu to either Play DVD or Eject DVD
Then when you highlight Play DVD it would play and highlight Eject it would Eject.

This is for XBMC on a mac mini if that matters.

xfiring
2009-04-08, 15:56
Bump, anyone have ideas on how to get a "Play DVD or Eject DVD" option when a DVD is inserted?

Thanks

squisher
2009-09-01, 03:39
Hi,
this issue was bothering me too. I found an ugly, but functional, workaround: I never used the Favorites, so I edited the button to work as eject.

Edit skins/MediaStream/720p/DialogButtonMenu.xml, and look for the Favorites button (id is 3110, you can just search for the number). There you can replace the <onclick> function.

[Edit] it's of course called XBMC.EjectTray().

duhcati
2009-10-01, 15:28
I was also missing an Eject DVD menu item, so I just added it myself. On my Mac Mini I use the MediaStream skin, so I editted /Applications/XBMC.app/Contents/Resources/XBMC/skin/MediaStream/720p/Home.xml and added a new menu item by adding the following lines beneath the 'DVD button' menu item (line 1434):

<item id="11">
<description>Eject</description>
<label>Eject</label>
<label2>Eject the DVD</label2>
<visible>System.HasMediadvd + !Skin.HasSetting(HideDVD)</visible>
<onclick>XBMC.EjectTray()</onclick>
</item>

Now, when a DVD is inserted a menu option will show to eject the DVD. Strange though that this isn't in there by default?