Skip to content

Commit

Permalink
Merge pull request #300 from fmtvp/TVPE-101_temp_strategy
Browse files Browse the repository at this point in the history
TVPE-101 adding new strat for vestel issue (MB10X)
  • Loading branch information
sdclibbery committed Oct 21, 2015
2 parents a511438 + 875ad72 commit f9b352c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/pagestrategy/html5hbbtvhybridappshow/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This page strategy is a slight variant on html5hbbtvhybrid in that it will call the app.show() if it exists.
This is all temp stuff.
16 changes: 16 additions & 0 deletions config/pagestrategy/html5hbbtvhybridappshow/body
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<object id="appmgr" type="application/oipfApplicationManager" style="position: absolute; width: 0; height: 0; visibility:hidden;"></object>
<script type="text/javascript" language="javascript">
//<![CDATA[
var appMgr = document.getElementById('appmgr');

if(appMgr.getOwnerApplication) {
var app = appMgr.getOwnerApplication(document);
if (app) {
app.show();
app.privateData.keyset.setValue(0x3FF);
}
} // Else the device must not have hbbtv APIs available
//]]>
</script>

<object id="broadcastVideoObject" type="video/broadcast" style="position: absolute; width: 0px; height: 0px;"></object>

0 comments on commit f9b352c

Please sign in to comment.