0

IndexedDB not work on HTML5?

indexedDB can not open on my Html page, it's got an error is 'UnknownError, Internal error opening backing store for indexedDB.open'? it's work fine on chrome without error.

And the localStorage didn't work, everytime the roHtmlWidget is created, the localStorage data is empty.

My autorun.brs is:

Sub Main()
msgPort = CreateObject("roMessagePort")
r = CreateObject("roRectangle", 0, 0, 1920, 1080)

config = {
url: "http://192.168.1.63//",
brightsign_js_objects_enabled: true,
focus_enabled: true,
javascript_enabled: true,
}
h = CreateObject("roHtmlWidget", r, config)
h.SetPort(msgPort)
h.SetAppCacheDir("SD:/appcache")
h.SetAppCacheSize(32768)
h.SetLocalStorageDir("SD:/storage")
h.SetLocalStorageQuota(32768)
h.SetWebDatabaseDir("SD:/webdatabase")
h.SetWebDatabaseQuota(32768)

sleep(1000)
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

Is there a problem with my script?

 

 

4 comments

  • 0
    Avatar
    Romeo

    Hi Mirage,

    Can you please provide a print screen of your SD card root content?

    Are there any errors reported by the BrightScript debugger? if there are errors, what are they?

    Thanks,

  • 0
    Avatar
    mirage

    Ok

    No error was found, I don't known how to debug the BrightScript, My html code below:

    The XT player screen show below.

  • 0
    Avatar
    mirage

    Thank you very much

  • 0
    Avatar
    Romeo

    Please submit a ticket via support@brightsign.biz with a link for the exported BA presentation so we can test and reproduce this.

    Thanks,

    Romeo

     

Please sign in to leave a comment.