Starting plugin from Home Screen

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
nlindblo Offline
Member
Posts: 70
Joined: Dec 2009
Reputation: 0
Location: London, UK
Question  Starting plugin from Home Screen Post: #1
Hi,

I have installed the BBC IPlayer plugin and would like to add a "shortcut" to launch this straight from Confluence Homescreen. I have added the following entry in the Home.xml file

<item id="13">
<label>IPlayer</label>
<onclick>xbmc.RunPlugin(plugin://video/iPlayer)</onclick>
<icon>special://skin/backgrounds/settings.jpg</icon>
<thumb>$INFO[Skin.String(Home_Custom_Back_Settings_Folder)]</thumb>
</item>

However, when I click on the entry nothing happens and I get

12:17:31 T:6448 M:173821952 ERROR: DIRECTORY::CPluginDirectory::AddSortMethod - called with an invalid handle.
12:17:31 T:6448 M:175943680 ERROR: DIRECTORY::CPluginDirectory::AddItem - called with an invalid handle.

In the logfile. Plugin works OK when I launch it from "plugins"

Would appreciate some assistance with this or a heads up if this is not related to Confluence and I should post in the forum for the plugin instead.

Many thanks!
find quote
ronie Offline
Team-XBMC Member
Posts: 8,262
Joined: Jan 2009
Reputation: 108
Post: #2
<onclick>ActivateWindow(VideoLibrary,plugin://video/iPlayer)</onclick>

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.
find quote
nlindblo Offline
Member
Posts: 70
Joined: Dec 2009
Reputation: 0
Location: London, UK
Post: #3
Thanks !
find quote
iamwu Offline
Junior Member
Posts: 2
Joined: Feb 2011
Reputation: 0
Post: #4
Hi nlindblo

I appreciate your work on this tweak - pretty handy to know how to put a link to the IPlayer addon on the Home page!

Hope you don't mind me asking but how did you choose where to place the snippet in the xml (I'm fairly new to XBMC)? I'm using the standard skin (i.e. Confluence) too and there appear to be a number of sections in its Home.xml file (/usr/share/xbmc/addons/skin.confluence/720p/Home.xml).

Going by the fact that it is an 'item' object I've tried placing it at the end of the 'control' section containing the other item objects. Is that what you have done?

Cheers

- Will
find quote
iamwu Offline
Junior Member
Posts: 2
Joined: Feb 2011
Reputation: 0
Post: #5
Ah apologies. Just found a how to for editting the Home screen in the wiki:

http://wiki.xbmc.org/index.php?title=HOW...ome_Screen)

Will read on before asking more questions.
find quote
dibsta Offline
Senior Member
Posts: 154
Joined: Apr 2009
Reputation: 0
Post: #6
Clicked on above link nothing there to read
Can anyone help
find quote
dazex Offline
Member+
Posts: 548
Joined: Nov 2009
Reputation: 0
Post: #7
http://wiki.xbmc.org/index.php?title=HOW...me_Screen)
find quote