caching - Cache error in iframe on samsung PM32F SmartTV -
going try , explain best can.
we have website caches couple of images use of cache manifest , displays them in loop. trying make app samsungs tizen smarttv pm32f display webpage made super simple test app try index.html looked this.
<!doctype html> <html> <head> <title>title</title> </head> <body> <iframe src="urltoourpage" sandbox="allow-same-origin allow-top-navigation allow-forms allow-scripts allow-popups"></iframe> </body> </html>
and config.xml looked this
<?xml version="1.0" encoding="utf-8"?> <widget xmlns:tizen="http://tizen.org/ns/widgets" xmlns="http://www.w3.org/ns/widgets" id="http://yourdomain/dinbil" version="3.0.0" viewmodes="maximized"> <access origin="*" subdomains="true"></access> <tizen:application id="53s0fefmsk.dinbil" package="53s0fefmsk" required_version="2.4"/> <content src="index.html"/> <feature name="http://tizen.org/feature/screen.size.normal.1080.1920"/> <icon src="icon.png"/> <tizen:metadata key="http://samsung.com/tv/metadata/prelaunch.support" value="true"/> <name>testapp</name> <tizen:privilege name="http://tizen.org/privilege/unlimitedstorage"/> <tizen:privilege name="http://developer.samsung.com/privilege/contentsdownload"/> <tizen:privilege name="http://developer.samsung.com/privilege/network.public"/> <tizen:privilege name="http://tizen.org/privilege/tv.inputdevice"/> <tizen:privilege name="http://tizen.org/privilege/download"/> <tizen:privilege name="http://tizen.org/privilege/internet"/> <tizen:profile name="tv-samsung"/> <tizen:setting screen-orientation="landscape" context-menu="enable" background-support="disable" encryption="disable" install-location="auto" hwkey-event="enable"/> </widget>
but got cache error event after had downloaded things while.
so switched out page simple test page tries cache 1 js file , prints out result , liked in iframe instead , still same result.
<!doctype html> <html manifest="cache.manifest.cfm"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> </head> <body style="background-color:white"> <p id="text"></p> <script> var appcache = window.applicationcache; function handleprogressevent(e) { document.getelementbyid("text").innerhtml = "progress"; } function handlenoupdateevent(e) { document.getelementbyid("text").innerhtml = "no update"; } function handlecachedevent(e) { document.getelementbyid("text").innerhtml = "cached"; } function handleerrorevent(e) { document.getelementbyid("text").innerhtml = "error"; } function handleupdatereadyevent(e) { document.getelementbyid("text").innerhtml = "update ready"; } appcache.addeventlistener('progress', handleprogressevent, false); appcache.addeventlistener('error', handleerrorevent, false); appcache.addeventlistener('cached', handlecachedevent, false); appcache.addeventlistener('noupdate', handlenoupdateevent, false); appcache.addeventlistener('updateready', handleupdatereadyevent, false); </script> </body> </html>
we not know else try, can tv don't allow caching in iframe? of works on emulator tizen studio not on real tv.
any or ideas of thing try next appriciated.
Comments
Post a Comment