0

Save some data on player for use after reboot

Hi,

I'm trying to receive data over the internet, for example a JQuery Ajax function receiving some JSON or HTML data, and saving that date *somehow* to the Brightsign player in case the connection is lost and the player reboots or swiches presentation. (Otherwise, after the reboot, the content would only come back on when the internet connection is restored.)

I tried several things. For example, opening an IndexedDB. In BrightAuthor, I went to [preferences], [storage] tab, and specified some percentages for [HTML local storage %] and [HTML Indexed DB %].

Then using code:

 

<script type="text/javascript">

indexedDB = window.indexedDB || window.webkitIndexedDB || window.mozIndexedDB || window.msIndexedDB;
request = indexedDB.open("TestDatabase");

request.onerror = function(evt) {
console.log("Database error code: " + evt.target.errorCode);
};
request.onsuccess = function(evt) {
db = request.result;
console.log("Database success" );
};

</script>

 

Testing on a PC in Chrome works, it opens the database. On the Brightsign player, I keep getting [Database error code: undefined] in the Javascript Console. Also tried some other online IndexedDB code examples. Can't get it to work on the player.

I also tried:

 

localStorage.setItem("somekey", "somevalue");

 

It works, but the Brightsign player doesnt keep this data after a reboot; it resets, so my data in the localStorage is gone (should only be the case with sessionStorage, no?)


Your help is appreciated!

 

 

BrightAuthor: 4.7.0.20
Player: XT1143 / fw: 7.0.60

 

2 comments

  • 0
    Avatar
    Lyndon

     

    I'm checking with a colleague for an example you can use for testing..

  • 0
    Avatar
    Jitte Hoekstra

    Hi Lyndon, yes, please post the example for testing....

Please sign in to leave a comment.