关于三星电视浏览器本地存储的Webkit支持 [英] Webkit support for local storage on Samsung TV browser

查看:402
本文介绍了关于三星电视浏览器本地存储的Webkit支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我移植一个基于HTML的应用程序,以三星智能电视。该应用程序使用本地存储来保存preferences,等本地存储似乎得到支持和数据是持久的,而浏览器是开放的。但是,一旦浏览器退出... 噗!的数据已经一去不复返了。像会话和饼干等数据都一直存在。

I'm porting a HTML-based app to a Samsung smart TV. The app uses local storage to keep preferences, etc.. Local storage appears to be supported and data is persistent while the browser is open. But, once the browser is exited ... poof! the data is gone. Other data like sessions and cookies do persist.

我用href="http://westcoastlogic.com/lawnchair/" rel="nofollow"> Lawnchair库的应用程序,还测试使用的 jStorage 。无论是持续超过闭幕的浏览器。

I use the Lawnchair library in the app and have also tested using jStorage. Neither persist beyond closing of the browser.

电视上的浏览器(或浏览器组件)是WebKit的建设534.7。从与浏览器中播放,我怀疑它实际上是写在Adobe AIR。

The browser (or browser component) on the TV is webkit build 534.7. From playing with the browser, I suspect it is actually written in Adobe Air.

我还测试了空气浏览器组件我的电脑,这是构建的WebKit 533.19.4上。这不会出现在所有支持本地存储。

I have also tested the Air browser component on my PC, which is build 533.19.4 of webkit. This doesn't appear to support local storage at all.

Chrome浏览器在我的电脑上,建立的WebKit 535.19,在我所有的测试工作正常。

Chrome on my PC, build 535.19 of webkit, works fine in all my tests.

所以,在这里在这里所做的怪谎言:它是WebKit版本,的WebKit在Adobe AIR的实施,还是电视?任何人都可以提供一个修补程序或建议的变通?

So, where does the blame lie here: is it the webkit build, the implementation of webkit in Adobe Air, or the TV? Can anyone offer a fix or a suggestion for work around?

感谢。

推荐答案

不幸的是我没有2012的模型,所以我不能检查,如果HTML5的localStorage是工作或没有。

Unfortunately I don't have 2012 model so I can't check if the HTML5 localStorage is working or not.

不过,我有解决方法,你这将是向下兼容previous电视机模式也为2010年和2011款车型使用Maple的浏览器: <一href="http://www.samsungdforum.com/Guide/View/Developer_Documentation/Samsung_SmartTV_Developer_Documentation_3.1/API_Reference/JavaScript_APIs/File_API" rel="nofollow">http://www.samsungdforum.com/Guide/View/Developer_Documentation/Samsung_SmartTV_Developer_Documentation_3.1/API_Reference/JavaScript_APIs/File_API

But I have workaround for you which will be backward compatible with previous TV sets' models also, as 2010 and 2011 models use Maple browser: http://www.samsungdforum.com/Guide/View/Developer_Documentation/Samsung_SmartTV_Developer_Documentation_3.1/API_Reference/JavaScript_APIs/File_API

  1. 序列化数据对象
  2. 保存它使用File API应用程序的目录
  3. 而每次打开应用程序打开此文件,反序列化数据的时间。

这将工作的肯定!

这篇关于关于三星电视浏览器本地存储的Webkit支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆