Running Plugin Addons from Home
#1
It seems that I can only run Plugins from their specified source and not from the Home via a custom button.

Here's the debug log firstly running Ted Talks from the Videos section and then from Home.

http://pastebin.com/ZsxskifC

Here's both the codes used for the custom button -

PHP Code:
<onclick>Skin.SetAddon(VideoButtonPath_1,xbmc.python.pluginsource)</onclick

PHP Code:
<onclick>RunAddon($INFO[Skin.String(VideoButtonPath_1)])</onclick
Reply
#2
yep, tried in the past to add a plugin button to DialogAlbumInfo.xml with no succes Confused
Reply
#3
We used to be able to launch plugins from Home using -

PHP Code:
<onclick>ActivateWindow(24,plugin://video/IPlayer/?tvradio=tv)</onclick> 
Reply
#4
Code:
<onclick>ActivateWindow(10025,plugin://plugin.video.nrk/)</onclick>

works for me in Confluence
Reply
#5
But soon enough they'll all be in addons/
Reply
#6
Got it working using -

<onclick>ActivateWindow(24,plugin://$INFO[Skin.String(VideoButtonPath_1)])</onclick>
Reply
#7
Guess Hitcher is right.

Had Shoutcast button in radio submenu and used:

<onclick>XBMC.ActivateWindow(MyMusicFiles,Shoutcast)</onclick>

Was far from perfect cause left music in file mode and couldn't use ",return"
but hey it was the only way to get it done.

Now that shoutcast is in addons button doesn't work anymore.
Had hopes Smile maybe I could open from library from now on so tried:

<onclick>ActivateWindow(MyMusicLibrary,Addons,shoutcast,return)</onclick>..opens audio addons
<onclick>ActivateWindow(10025,plugin://plugin.audio.Shoutcast/)</onclick>..opens music-library but freezes
<onclick>ActivateWindow(MyMusicLibrary,plugin://plugin.audio.Shoutcast/)</onclick>..opens music-library
Eek10025 should be the same as MyMusicLibrary, but none off these opens shoutcast since it is an addon.
Edit stupid me :o 10502 is musiclibrary

Edit:
had to eat while posting will try that to..

<onclick>ActivateWindow(24,plugin://path to shoutcast/default.py)</onclick> is also no succes here.
Reply
#8
<onclick>ActivateWindow(10501,plugin://plugin.audio.shoutcast/)</onclick>

worked for me, again in Confluence

EDIT: capital "S" in plugin://plugin.audio.Shoutcast could be the issue, not really sure
Reply
#9
Just added custom plugin buttons to Music and Shoutcast worked for me using -

PHP Code:
<onclick>ActivateWindow(501,plugin://$INFO[Skin.String(MusicButtonPath_1)])</onclick> 

where $INFO[Skin.String(MusicButtonPath_1)] is set to plugin.audio.shoutcast
Reply
#10
Thanks, that worked !!
Edit..Sad still in musicfiles and no return function
btw I really messed up 10025 is video library not music oops
Reply
#11
return works anywhere.

Also, PLEASE don't use windowIDs here. It's both easier on you (as pointed out several times in this thread already :p ), and more reliable to use the window name!

If I can make it easier to do plugin-specific stuff then I'm happy to do so.

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not 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.


Image
Reply
#12
I only used the window id while testing but I have recently gone through the whole skin and changed all window ids to their names but (and I know it's no longer supported by you guys so forgive me) I ran into problems doing this on the Xbox for some reason. It wouldn't recognise 'musicscan' and 'videoscan' so I had to change them back to 112 and 133 respectively. I suspect there maybe others as well, any reason for this?
Reply
#13
Hitcher Wrote:any reason for this?

most likely 'musicscan' and 'videoscan' are not defined in ButtonTranslator.cpp in the xbox source.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#14
Looks like you're right mate -

else if (strWindow.Equals("scandialog")) wWindowID = WINDOW_DIALOG_MUSIC_SCAN;

from 9.04_Babylon-xbox and there's no mention of the video scan at all.
Reply
#15
Amet Wrote:<onclick>ActivateWindow(10501,plugin://plugin.audio.shoutcast/)</onclick>

can anyone get this to work in library mode ?

<onclick>ActivateWindow(MusicFiles,plugin://plugin.audio.shoutcast/)</onclick>
works fine

but,
<onclick>ActivateWindow(MusicLibrary,plugin://plugin.audio.shoutcast/)</onclick>
does not...
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply

Logout Mark Read Team Forum Stats Members Help
Running Plugin Addons from Home0