Jump to content


Photo

Creating A Web Radio Button With Kml Browser


  • Please log in to reply
8 replies to this topic

#1 junkster

junkster

    X-S Young Member

  • Members
  • Pip
  • 41 posts

Posted 20 June 2004 - 06:02 PM

Hello there,
I had KMLBrowser set up so a button called "Web Radio" on the 1st screen of XBMC could be clicked instead of jumping through folders. I recently upgraded XBMC because they fixed the gif bug that might prevent KML from crashing. Unfortunately, I lost the Web Radio button after upgrading.

Can somebody help me bring it back?

#2 junkster

junkster

    X-S Young Member

  • Members
  • Pip
  • 41 posts

Posted 20 June 2004 - 06:04 PM

PS - If an XBMC author is reading this, a great idea would be to put in code that will allow say, files with a .cfg extension to append settings to xboxmediacenter.xml? This way, upgrading to new versions won't break old stuff quite so easily!

#3 opjose

opjose

    X-S Transcendental

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 6,809 posts

Posted 21 June 2004 - 01:39 AM

The problem is with the skin you are using.

As of the day of this post, only the default skin in 480p mode shows it.

Switching to 720p mode makes it go away, as do other skins.

#4 untermensch

untermensch

    X-S Enthusiast

  • Members
  • 25 posts

Posted 21 June 2004 - 05:12 AM

I think it's best to think of XBMC like Linux, and like Linux there are diffrent distributions, and each one is a little diffrent. as far as I know the KML browser buttons are a hack to the skins included buy the builder of that particular distubution. and are not yet officialy included by the skin maker. you most likely could just replace the skin, with the one that had the button. also some distros of XBMC have moved the KML Browser button to music on some skins like ProjectMayhem, Black Blue, black blue beOS.

The ability to launch a script from a bookmark is a great idea.

<bookmark>
<name>KML Browser</name>
<path>scripts/simpleKML</path>
</bookmark>

instead of changing a bunch of skins whenever the next killer app for XBMC is released.

#5 junkster

junkster

    X-S Young Member

  • Members
  • Pip
  • 41 posts

Posted 21 June 2004 - 09:44 AM

Thanks guys, but I didn't change any skin. I have NTSC, and no HDTV, so I have the default XBMC media player skin chosen.

Changing the home.xml file, I managed to get it to say "Web Radio" on the initial screen inside the menu, but I can't get it to act like a button. Basically I'm unable to highlight it and click it to make it run the script.

I do realize that someone hacked in the Web Radio button, that's why I trying to put it back myself! I can't find that version again, but I know it's as simple as putting a few lines of code in. Does anybody know what these lines of code are??

#6 nimbles

nimbles

    X-S Freak

  • Members
  • PipPipPipPipPip
  • 1,184 posts
  • Location:London, UK
  • Interests:Student, Mathematical Finance.<br>Most sports, footbal (Arsenal fan), cricket &amp; rugby<br>Movie Junkie.
  • Xbox Version:v1.1

Posted 21 June 2004 - 10:49 AM

try this

the instructions are for putting it in mymusic but the same applies for the main screen too (home.xml)

Edited by nimbles, 21 June 2004 - 10:51 AM.


#7 Sleeve

Sleeve

    X-S Young Member

  • Members
  • Pip
  • 43 posts

Posted 21 June 2004 - 09:27 PM

If it appears but it won't activate, you probably cut and pasted another button and forgot to make the ID number unique and/or change the onup and ondown of the surrounding buttons to let the button get focus.

Edited by Sleeve, 21 June 2004 - 09:30 PM.


#8 untermensch

untermensch

    X-S Enthusiast

  • Members
  • 25 posts

Posted 22 June 2004 - 01:32 AM

you have probably gotten this far.
and if the button youve made says web radio then you hve an enty in the language file

<control>
<description>KML2 Browser normal push button</description>
<type>button</type>
<id>9</id>
<posX>419</posX>
<posY>327</posY>
<width>197</width>
<height>29</height>
<label>9</label>
<font>font14</font>
<script>Q:\scripts\SimpleKML.py</script>
<onleft>13</onleft>
<onright>13</onright>
<onup>8</onup>
<ondown>2</ondown>
</control>


depending where you have placed the button, you need to change
<onup> and the <ondown> tags on the other buttons to point to your new button.

<control>
<description>Settings normal push button</description>
<type>button</type>
<id>8</id>
<posX>419</posX>
<posY>302</posY>
<width>197</width>
<height>29</height>
<label>5</label>
<font>font14</font>
<hyperlink>4</hyperlink>
<onleft>13</onleft>
<onright>13</onright>
<onup>7</onup>
<ondown>9</ondown>
</control>
<control>
<description>KML2 Browser normal push button</description>
<type>button</type>
<id>9</id>
<posX>419</posX>
<posY>327</posY>
<width>197</width>
<height>29</height>
<label>9</label>
<font>font14</font>
<script>Q:\scripts\SimpleKML.py</script>
<onleft>13</onleft>
<onright>13</onright>
<onup>8</onup>
<ondown>2</ondown>
</control>

the settings button <ondown> tag points to the KML Browser button.

add somthing like this to get the bg image when your new button is selected

<control>
<type>image</type>
<id>109</id>
<posX>60</posX>
<posY>110</posY>
<texture>home-mymusic.png</texture>
</control>

#9 junkster

junkster

    X-S Young Member

  • Members
  • Pip
  • 41 posts

Posted 28 June 2004 - 09:53 AM

Thanks guys!

I didn't know what id and onup, etc. meant and that was all I needed to know!

Help much appreciated biggrin.gif




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users