Add Button to a Python Plugin for XBMC on the Home Screen Menu?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
jonnyboom Offline
Junior Member
Posts: 14
Joined: Sep 2009
Reputation: 0
Post: #11
sorted

thanksBig Grin
find quote
Shoesy Offline
Donor
Posts: 185
Joined: Jan 2010
Reputation: 0
Location: UK
Post: #12
Many thanks for this thread - really nice having iplayer at the top level. To make this complete tho is it possible to get the channels / categories on the submenu?

p.s. - anyone got any better background images up for grabs than the one earlier in this thread? I scoured google and flickr for something better and drew a big blank...

Cheers! Shoesy x

Check out my stationery blog- http://www.tailormadeinvites.co.uk
find quote
andjusticeforal Offline
Junior Member
Posts: 22
Joined: Feb 2010
Reputation: 0
Post: #13
Guys,

I've tried to follow what was posted here by editing my home.xml, but I can't seem to get it to work at all, could you please post your home.xml here?

Or if possible give a little more detail on how you got this to work?

Im running xbmc9.11 with no mods btw.

When I edited my home.xml to include your code:

<!-- Custom Button -->
<control type="button" item id="12">
<label>iPlayer TV</label>
<onclick>ActivateWindow(24,plugin://video/IPlayer/?tvradio=tv)</onclick>
<icon>/home/pictures/backgrounds/iplayer.jpg</icon>
</control>

XBMC would not let me re-enable the aeon skin. (I changed the iplayer.jpg path to the correct location for my pc)

What do type="button" and item id"=12" correspond to?
find quote
t2ffn Offline
Fan
Posts: 533
Joined: Oct 2009
Reputation: 0
Post: #14
Why the hell would you be enabling the aeon skin? You're in Confluence section...
find quote
Jimcando Offline
Junior Member
Posts: 40
Joined: Nov 2009
Reputation: 0
Post: #15
Shoesy Wrote:To make this complete tho is it possible to get the channels / categories on the submenu?

I'd like to do this as well.

I've got the submenu sorted out, but I have no idea how to activate, say, the live BBC One stream on click. Is this possible?

So the same way to code previously mentioned in this thread, "ActivateWindow(24,plugin://video/iPlayer/?tvradio=tv)" tells XBMC to go straight to the TV section, is it possible to go TV -> Watch Live -> BBC One?
(This post was last modified: 2010-05-05 22:17 by Jimcando.)
find quote
Jimcando Offline
Junior Member
Posts: 40
Joined: Nov 2009
Reputation: 0
Post: #16
bump?
find quote
tikkiew Offline
Fan
Posts: 347
Joined: Jun 2008
Reputation: 127
Post: #17
Try this. Add the live stream to favourites. And look in favouries.xml to find the code .........\XBMC\userdata\favourites.xml.
find quote
Jimcando Offline
Junior Member
Posts: 40
Joined: Nov 2009
Reputation: 0
Post: #18
Genius! Big Grin

That's worked. For anyone interested the command is:
Code:
<onclick>RunPlugin(plugin://video/iPlayer/?pid=0&amp;label=bbc_one_london)</onclick>
find quote
Post Reply