Play DVD Option?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Admiral Michael Offline
Junior Member
Posts: 38
Joined: Nov 2008
Reputation: 1
Post: #11
What would be the onclick value for playing a dvd?

EDIT: Never mind, grabbed the code from the Mediastream skin, even have it hiding when no disc is inserted. Thanks for the links, it helped alot.

EDIT2: How can I get the background to fade correctly, it doesn't seem to crossfade like the others. I added the DVD option to the top of the menu.

Media PC (ASRock ION 330) - Intel ATOM 330 | 2GB (2x1GB) DDR2 800MHz Memory | Seagate Momentus 320GB 5400.6RPM SATA Hard Drive | nVidia nForce 10/100/1000 LAN | Liteon DS-8A3S SATA DVDRW | nVidia ION Graphics | Microsoft Windows 7 32bit Ultimate | XBMC for Windows using Neon skin

Home Theatre System
Panasonic TC-32LX70 32" 720p LCD HDTV | Denon AVR-1909 A/V Receiver | Paradigm Cinema70 5.1 Speakers | Sony BDP-S560 Blu-ray Player | Apple TV2
(This post was last modified: 2009-10-20 05:36 by Admiral Michael.)
find quote
ronie Offline
Team-XBMC Member
Posts: 8,346
Joined: Jan 2009
Reputation: 111
Post: #12
Admiral Michael Wrote:How can I get the background to fade correctly, it doesn't seem to crossfade like the others. I added the DVD option to the top of the menu.

it's hard to tell without seeing the entire code, but if you've specified the background in the same way as the other menu backgrounds, it should crossfade just fine.
maybe the filesize is a lot bigger than the others, so i takes longer to load?

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
(This post was last modified: 2009-10-20 18:32 by ronie.)
find quote
Admiral Michael Offline
Junior Member
Posts: 38
Joined: Nov 2008
Reputation: 1
Post: #13
I checked the file sizes, the dvd on was bigger, about 450kb compared to about 44kb. I also resized it so it has the same dimensions.

It works nicely now, thanks.

Media PC (ASRock ION 330) - Intel ATOM 330 | 2GB (2x1GB) DDR2 800MHz Memory | Seagate Momentus 320GB 5400.6RPM SATA Hard Drive | nVidia nForce 10/100/1000 LAN | Liteon DS-8A3S SATA DVDRW | nVidia ION Graphics | Microsoft Windows 7 32bit Ultimate | XBMC for Windows using Neon skin

Home Theatre System
Panasonic TC-32LX70 32" 720p LCD HDTV | Denon AVR-1909 A/V Receiver | Paradigm Cinema70 5.1 Speakers | Sony BDP-S560 Blu-ray Player | Apple TV2
find quote
kizer Offline
Fan
Posts: 699
Joined: Jul 2008
Reputation: 0
Location: Seattle WA, US
Post: #14
Could you share what you did and post up the code you tweaked for those of us not as smart. Frown

Please and thank you. Wink
find quote
Admiral Michael Offline
Junior Member
Posts: 38
Joined: Nov 2008
Reputation: 1
Post: #15
kizer Wrote:Could you share what you did and post up the code you tweaked for those of us not as smart. Frown

Please and thank you. Wink

This is the code:

Code:
<item id="1">
  <label>DVD</label>
  <visible>System.HasMediadvd</visible>
  <onclick>XBMC.PlayDVD</onclick>
  <icon>special://skin/images/backgrounds/dvds.jpg</icon>
</item>

Here is the easy way:

http://www.michaelsoft.info/other/DVDHom...arency.rar

replace Includes_Home.xml in /skin/transparency!/720p
put dvd.jpg in /skin/transparency!/images/backgrounds

This will place a button labeled DVD on the top of the menu but only when a disc is present.

Note: I took this jpg file from the mediastream_redux theme and want to give them the appropriate credit.

You can use your own but make sure it's 960x540 and around 40kb otherwise it doesn't fade correctly.

Media PC (ASRock ION 330) - Intel ATOM 330 | 2GB (2x1GB) DDR2 800MHz Memory | Seagate Momentus 320GB 5400.6RPM SATA Hard Drive | nVidia nForce 10/100/1000 LAN | Liteon DS-8A3S SATA DVDRW | nVidia ION Graphics | Microsoft Windows 7 32bit Ultimate | XBMC for Windows using Neon skin

Home Theatre System
Panasonic TC-32LX70 32" 720p LCD HDTV | Denon AVR-1909 A/V Receiver | Paradigm Cinema70 5.1 Speakers | Sony BDP-S560 Blu-ray Player | Apple TV2
find quote
kizer Offline
Fan
Posts: 699
Joined: Jul 2008
Reputation: 0
Location: Seattle WA, US
Post: #16
Thanks a bunch man. I'll give it a try this evening.

Its a small trivial thing, but my wife uses dvds for my kids little movies.
find quote
Admiral Michael Offline
Junior Member
Posts: 38
Joined: Nov 2008
Reputation: 1
Post: #17
No problem, I love this skin. But prefer the dvd option on the main menu, which is doable.

Media PC (ASRock ION 330) - Intel ATOM 330 | 2GB (2x1GB) DDR2 800MHz Memory | Seagate Momentus 320GB 5400.6RPM SATA Hard Drive | nVidia nForce 10/100/1000 LAN | Liteon DS-8A3S SATA DVDRW | nVidia ION Graphics | Microsoft Windows 7 32bit Ultimate | XBMC for Windows using Neon skin

Home Theatre System
Panasonic TC-32LX70 32" 720p LCD HDTV | Denon AVR-1909 A/V Receiver | Paradigm Cinema70 5.1 Speakers | Sony BDP-S560 Blu-ray Player | Apple TV2
find quote
Steveb Offline
Fan
Posts: 308
Joined: Oct 2009
Reputation: 3
Location: Adelaide, Australia
Post: #18
Your code works in the vertical menu, but not the horizontal.
Also I think there is a confilict with the video menu label.

I changed <item id="1"> to <item id="17"> and moved it to the end of the menu list.
now for the horizontal menu Oo

"Political Correctness is a doctrine, fostered by a delusional, illogical minority, and rabidly promoted by an unscrupulous mainstream media, which holds forth the proposition that it is entirely possible to pick up a turd by the clean end"
(This post was last modified: 2009-10-21 10:58 by Steveb.)
find quote
Admiral Michael Offline
Junior Member
Posts: 38
Joined: Nov 2008
Reputation: 1
Post: #19
Sorry, that's cause I just set it up for the vertical menu.

Media PC (ASRock ION 330) - Intel ATOM 330 | 2GB (2x1GB) DDR2 800MHz Memory | Seagate Momentus 320GB 5400.6RPM SATA Hard Drive | nVidia nForce 10/100/1000 LAN | Liteon DS-8A3S SATA DVDRW | nVidia ION Graphics | Microsoft Windows 7 32bit Ultimate | XBMC for Windows using Neon skin

Home Theatre System
Panasonic TC-32LX70 32" 720p LCD HDTV | Denon AVR-1909 A/V Receiver | Paradigm Cinema70 5.1 Speakers | Sony BDP-S560 Blu-ray Player | Apple TV2
find quote
Admiral Michael Offline
Junior Member
Posts: 38
Joined: Nov 2008
Reputation: 1
Post: #20
I updated the file to support the horizontal menu and one small bug fix. Turns out when you change the id numbers it messes up the little info box that can appear on the bottom right. It's all fixed now.

Media PC (ASRock ION 330) - Intel ATOM 330 | 2GB (2x1GB) DDR2 800MHz Memory | Seagate Momentus 320GB 5400.6RPM SATA Hard Drive | nVidia nForce 10/100/1000 LAN | Liteon DS-8A3S SATA DVDRW | nVidia ION Graphics | Microsoft Windows 7 32bit Ultimate | XBMC for Windows using Neon skin

Home Theatre System
Panasonic TC-32LX70 32" 720p LCD HDTV | Denon AVR-1909 A/V Receiver | Paradigm Cinema70 5.1 Speakers | Sony BDP-S560 Blu-ray Player | Apple TV2
find quote