Hello, we are trying to get this HD223 to just show what is on a website. I do not think BrightAuthor is needed to do this, just a simple edit to the autorun.brs file. Can anyone confirm? From searching Google I found this code, but not sure where in the autorun to place it? Or is this not correct? Do we still need to have a .bpf file to run? We tried to use BrightAuthor and adding the HTML and adding the site, but it looks like the URL we enter disappears when we go back into the file, and that seems like a lot just to tell the unit to go to a website. The website will handle all the animation we need.
Appreciate the help!
Sub Main()
msgPort = CreateObject("roMessagePort")
r = CreateObject("roRectangle", 0, 0, 1920, 1080)
config = {
url: "http://thesite.com",
}
h = CreateObject("roHtmlWidget", r, config)
h.SetPort(msgPort)
sleep(10000)
h.Show()
while true
msg = wait(0, msgPort)
print "type(msg)=";type(msg)
if type(msg) = "roHtmlWidgetEvent" then
eventData = msg.GetData()
if type(eventData) = "roAssociativeArray" and type(eventData.reason) = "roString" then
print "reason = ";eventData.reason
if eventData.reason = "load-error" then
print "message = ";eventData.message
endif
endif
endif
end while
End Sub