If I am following what you are saying...you have loaded xbrowser and you're not seeing media devices like receiver, etc? If so, thats because the way xbrowser/minibrowser etc is done...i.e. here is the light example...my comments are underlined, I hope...123 feel free to correct me!
Output = g_xbRenderHeader()
this is what creates the bar at the top
Output = Output & "<TABLE width=100%><TR><TD><CENTER>"
Output = Output & "<BR><BR>"
if this.PowerState = true then
strImage = "Power On.gif"
This points to the location of the 'Power On.gif' (set in the Globalscript)
else
strImage = "Power Off.gif"
This points to the location of the 'Power On.gif' (set in the Globalscript)
end if
Output = Output & g_xbGetAnchor("xbTogglePower", strImage)
xbTogglePower is the method under xbLight
Output = Output & "<BR><BR>"
set bright = nothing
on error resume next
set bright = this.FindClassProperty("Brightness")
on error goto 0
if bright is nothing then
Output = Output & "<FONT color= """">"
end if
if not bright is nothing then
This is the part that displays the brightness value
Output = Output & "<BR><BR><DIV>"
brightness = CInt(this.Brightness * 100)
Output = Output & "<FONT color=""yellow"" size=""50"">"
Output = Output & brightness
Output = Output & "%</DIV>"
Output = Output & "<BR>"
Output = Output & g_xbGetAnchor("xbDimDown", "ArrowDown.gif")
Points to the dim down method and displays the arrow.gif
Output = Output & " "
Output = Output & g_xbGetAnchor("xbDimUp", "ArrowUp.gif")
Points to the dim down method and displays the arrow.gif
end if
Output = Output & "</CENTER></TD></TR></TABLE>"
Output = Output & g_xbRenderFooter()
method.xbRenderPage = Output
So if youre trying to display devices, you have to create a new xb_class and define it in the Function g_xbisValidObjectType(obj) under globalscripts/g_xb
Code:
if obj.IsOfExplicitType("sys://Schema/Device/Lighting/Lighting") then
bIsValid = true
else