[portal-xtra1] Custom TV Portal Alternative

Hi Ian,

Noticed an issue with iPlayer loaded via Red/2 at the weekend.
If you go to search, and press ok on a letter, it selects it twice. Is there a keypress conflict maybe?
Also, the video did not seem to want to play either.

Loading via Humax portal works fine.

Curious, probably be this Saturday before I can put anytime into things.

The stuff is all links, so I don't think my stuff should affect it,but... who knows what the hbbTV application api is really doing behind the scenes, as the spec is one thing, then hummy's implementation is/may be another...

Maybe I should detach the keyboard event before loading the next URL?
 
I wouldn't try and merge the two or kill custom-portal completely. Here's what I would do:
  • In the portal-xtra1 CONTROL file, note that it conflicts with custom-portal:
    • Just add Conflicts: custom-portal
  • Copy the bootstrap code from the custom-portal package into the portal-xtra1 package (basically the contents of the boot/ directory in there;
  • Tweak the portal startup page in boot/2/config-ocontroller-si-rootfs.txt - the mom.hbbtv.portal entry as Chris has already noted - so that is loads the page you want at startup;
  • Move your code up a level so that it sits directly within /mod/var/mongoose/html/portal if that makes sense for your code structure;
  • Provide an empty plugins/ directory in the same location as custom-portal did;
  • Get the existing plugin authors (oh, that's just me : ) to update their package so that it references the new jquery library that you bundle, or the one in /mod/var/mongoose/html/js, rather than the one that came with custom-portal, or provide the old jquery 1.4.2 library alongside yours.
That way, the two portals can continue to exist but only one can be installed at a time. When you first do this, people will need to remove custom-portal in order to upgrade portal-xtra1 because of the conflict statement and if they ever want to switch back they need to remove the latter first.

I've got all this done,
as well as
Conflicts: custom-portal

I have
Replaces: custom-portal
Supplies: custom-portal,jquery(1.7.xxx) -can't remember exact number off my head

I am testing it over the next few days... in various scenarios with combinations of other related plugins installed.
 
hmm just looked at the config-ocontroller-si-rootfs.txt file.
One of the first lines states this:
# The BBC iplayer code implements navigation so it should be disabled in Galio.
browser.kbnav.enabled: 0

Maybe you should point it to the file in usr\browser\iplayer\portal_relay.html so it starts up correctly? Similar to how we launch SkyPlayer.
I dont know if this is the correct file to point to but it is listed in usr\browser\portal\portal.html (which is a humax test file).
 
hmm just looked at the config-ocontroller-si-rootfs.txt file.
One of the first lines states this:
# The BBC iplayer code implements navigation so it should be disabled in Galio.
browser.kbnav.enabled: 0

Maybe you should point it to the file in usr\browser\iplayer\portal_relay.html so it starts up correctly? Similar to how we launch SkyPlayer.
I dont know if this is the correct file to point to but it is listed in usr\browser\portal\portal.html (which is a humax test file).
Ah! It all makes - some sort of sense - I'll look at it this weekend.
 
Thanks Ian, I'll have a play with it tonight.

Your package is missing the convenience link var/mongoose/portal -> var/mongoose/html/portal which breaks things like your listplugins.jim script.

You could slim it down a tad by symlinking jquery.js to jquery-1.7.1.min.js instead of providing the same file twice.
 
Thanks Ian, I'll have a play with it tonight.

Your package is missing the convenience link var/mongoose/portal -> var/mongoose/html/portal which breaks things like your listplugins.jim script.

You could slim it down a tad by symlinking jquery.js to jquery-1.7.1.min.js instead of providing the same file twice.
OK
*Changed my listplugin.jim script so that it doesn't use the linked path.
*Sym linked the jquery.js and jquery.min.js (same files)
*Added some rm and rmdir commands to the postinst script to remove the links and unused directorys.
Code:
echo "Tidying up dead symbolic links and old folders"
echo "from previous installs."
rm -f /mod/var/mongoose/portal
rmdir /mod/var/mongoose/html/portal/Images/Common
rmdir /mod/var/mongoose/html/portal/Images
rm -f /mod/var/mongoose/html/portal/Scripts
rmdir /mod/var/mongoose/html/portal/include
rmdir /mod/var/mongoose/html/portal/plugin/xtra1/app
rmdir /mod/var/mongoose/html/portal/plugin/xtra1
echo "Done."
*Are the 'convienience links' needed/used by anything?

http://tv.tausoft.co.uk/portal-xtra1_1.12.059.861_mipsel.opk

More testing & comments please...
 
Tried to play youtube video in xtra portal via red button/then 6 for YT. Would not play, cursor going round forever. Tried in the humax portal same video from most popular section it played.
 
Tried to play youtube video in xtra portal via red button/then 6 for YT. Would not play, cursor going round forever. Tried in the humax portal same video from most popular section it played.
Does this happen to anyone else?
I think that the Youtube app on the xtra portal has potential; it finds better results on searches, but there's no point if nothing plays?
 
Does this happen to anyone else?
I think that the Youtube app on the xtra portal has potential; it finds better results on searches, but there's no point if nothing plays?
I was under the impression that both methods of accessing the YouTube app linked to the same place.
 
Are you sure? its pointing to exactly the same application
I have done a search on the new app which brought in some videos I was not expecting , based on the previous app.
If it's pointing to the same app then why videos in the xtra do not play? Just to clarify: press portal on remote/humax portal/youtube . Here videos play. If instead of Humax portal I choose xtra portal/red button on remote/ Youtube at number 6. Here videos do not play.
 
Because there is a problem with the code in the xtra portal at the moment which is discussed above. Think its permission issues..
 
Fixed the issues with the Red button apps including iPlayer & YouTube Ian
We need to switch the TV off before running.

Code:
function redKeys(kk)
{ if (kk==VK_1) goURL("https://www.humaxtvportal.com/");
  //if (kk==VK_2) goURL("http://www.humaxtvportal.com/Apps/iplayer/launcher.html");
  if (kk==VK_2) 
  {
  document.getElementById('video').setTVOff();
  //goURL("file:/usr/browser/iplayer/portal_relay.html");
  goURL("http://www.humaxtvportal.com/Apps/iplayer/launcher.html");
  }
  if (kk==VK_3)
  {
  document.getElementById('video').setTVOff();
  goURL("http://www.humaxtvportal.com:8094/PortalService/vTuner/index.htm?feed=favourite&level=top&siteLang=eng");
  }
  if (kk==VK_4)
  {
  document.getElementById('video').setTVOff();
  goURL("http://test.humaxtvportal.com/WikiTv");
  }
  if (kk==VK_5)
  {
  document.getElementById('video').setTVOff();
  goURL("http://test.humaxtvportal.com/Flickr/");
  }
  if (kk==VK_6)
  {
  document.getElementById('video').setTVOff();
  goURL("http://test.humaxtvportal.com/YouTube/");
  }
  if (kk==VK_7)
  {
  document.getElementById('video').setTVOff();
  goURL("https://www.humaxtvportal.com/Picasa/");
  }
  if (kk==VK_8)
  {
  document.getElementById('video').setTVOff();
  goURL("http://data.teletext.co.uk/iptv/index.html");
  }
}

Also, changed the init video function to switch the TV back on

Code:
function initVideo() {
  try {
    document.getElementById('video').setTVOn();
    document.getElementById('video').bindToCurrentChannel();
  } catch (e) {
    // ignore
  }
  try {
    document.getElementById('video').setTVOn();
    document.getElementById('video').setFullScreen(false);
  } catch (e) {
    // ignore
  }
}
function initPIP() {
  try {
    document.getElementById('video').setTVOn();
    document.getElementById('video').bindToCurrentChannel();
  } catch (e) {
    // ignore
  }
}
 
I have done a search on the new app which brought in some videos I was not expecting , based on the previous app.
If it's pointing to the same app then why videos in the xtra do not play? Just to clarify: press portal on remote/humax portal/youtube . Here videos play. If instead of Humax portal I choose xtra portal/red button on remote/ Youtube at number 6. Here videos do not play.
I suspect it may be the way I launch subsequent web pages using the browser URL.
I have yet to try launching the web addresses using the Application manager -- which the box itself does when starting the portal, this may do something clever with the keyboard events.
 
Back
Top