[portal-xtra1] Custom TV Portal Alternative

Fixed the issues with the Red button apps including iPlayer & YouTube Ian
We need to switch the TV off before running.
Code:
  document.getElementById('video').setTVOff();

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
  }
}
Thanks Chris,
I didn't get to it today (Saturday) as I originally planned.

I will roll this into the version 1 release and upload it in the next 48 hours.

This will be the self contained portal, that completely replaces the custom-portal.
 
function goURL(u,tv)
{ hideInfobox();
$(".item").addClass("hidden");
$(".iTime").addClass("hidden");
$("#loading").removeClass("hidden");

if(tv==0) document.getElementById('video').setTVOff();
window.location.href=u;
}

Rolled the TVOff into the goURL() function,
This doesn't fix the BBC search bug - I still think it may require launching the app via a different URL or via the application manager.
Loooking into it now - as I can't sleep - again...
 
portal-xtra1_1.12.064.240_mipsel.opk

Uploaded and live,

Change Log
  • Stand alone portal, completely replaces the custom portal.
  • Works with the Foscam plugin, or other plugins.
  • Uninstall scripts tidy up folders etc.
  • Install script removes old folders from custom-portal and previous versions of xtra1 that are no longer used.
  • Turns off the Video before loading other Apps/weblinks.
Notes
  • BBC iPlayer search still does double characters, under investigation
  • If you want to add your own custom web-links, or write your own pages, write a plugin, like the tvChat one, either as your own app/webpage or as a redirecting .html file
To-Do
  • Try launching other websites with the application manager, instead of as a web browser URL, which may fix the BBC search issue
  • More investigation into a second video player, possible PIP
  • tvChat - hbbtv Website - long way off
 
It didn't install cleanly from the repository,
Modified...
portal-xtra1_1.12.064.300_mipsel.opk

Feedback please
 
Double key presses in iPlayer seems to have gone away for me.

Using
Code:
browser.application.trusted.uris: [URL]http://localhost/,https://www.humaxtvportal.com/,http://www.humaxtvportal.com/,file:/usr/browser/sky_player/,http://intranet.ant.co.uk/,https://iptv.sky.com/,file:/var/lib/humaxtv_backup/[/URL]
and
Code:
http://www.humaxtvportal.com/Apps/iplayer/launcher.html
 
It didn't install cleanly from the repository,
Modified...
portal-xtra1_1.12.064.300_mipsel.opk

Feedback please
I have just installed this and noticed that it does not remove the original custom portal package which I thought it was supposed to, although this is easy to do manually via webif package management.
 
I have just installed this and noticed that it does not remove the original custom portal package which I thought it was supposed to, although this is easy to do manually via webif package management.
Does it refuse to install because of the conflict?
I don't think it's necessarily appropriate for one package to automatically remove another. The idea is that you can choose which one you have installed.
 
Does it refuse to install because of the conflict?
I don't think it's necessarily appropriate for one package to automatically remove another. The idea is that you can choose which one you have installed.
No, there is no reported conflict, but the change log below

Change Log
  • Stand alone portal, completely replaces the custom portal.
  • Works with the Foscam plugin, or other plugins.
  • Uninstall scripts tidy up folders etc.
  • Install script removes old folders from custom-portal and previous versions of xtra1 that are no longer used.
  • Turns off the Video before loading other Apps/weblinks.
mentions that it "completely replaces the custom portal" and that the "Install script removes old folders from custom-portal and previous versions of xtra1 that are no longer used"
This gives me the impression that it should remove the original custom portal.
 
I have just installed this and noticed that it does not remove the original custom portal package which I thought it was supposed to, although this is easy to do manually via webif package management.
The first version of the package did remove custom-portal, and seemed to work OK when installing it from the command line.

But when I uploaded it to the repository and installed it, it completely screwed up the install, and left residual 'blank' items in the 'available to install tab in the webif package management screen'.

So I modified the package, so it does NOT have a 'Conflicts:' entry; and uploaded it within the hour.

I know this does leave some of the files from custom-portal in the system. Also it then enforced the use of xtra1, even trying to install custom-portal without extra1 forced xtra1 to be installed, no choice at all.

As there is no official documentation for opkg (you have to read the source code to figure out what is going on), any definitive advice on what SHOULD be in the CONTROL files would be more than welcome.
 
The wiki has a page on creating packages - http://wiki.hummy.tv/wiki/Create_Packages - and that links through to the relevant parts of the Debian package documentation that covers the control file fields; opkg is based on the Debian package format.

You should just be able to put
Conflicts: custom-portal
in your package and that will stop people from being able to install yours while custom-portal is installed - they'll have to remove it and its dependants first. It will also prevent them from installing custom-portal back over the top of portal-xtra1 - the package system will prevent it because of the conflict it would introduce.

I haven't looked to see what your package does but automatically removing other packages in a pre-install script is not generally the right way to manage package conflicts; although this case might actually be the exception to give people an easy upgrade path.
 
Its definitely US based, i just tried to access certain sky pages and i am unable to as "you appear to not be based in the UK".
Rock on.....Martypants 1 Sky 0.
 
try hulu, if you can play content from there, you should be ok

im using ultrasurf to get a US ip address, im keeping my fingers crossed for speed.com
 
Working for me, not sure if Ian updated the link for it in Xtra1 however..
If you want to play with it, amend the link in the portal.js to http://humaxtvportal.com/Facebook
Once you try logging in, you will need to go to Facebook on the PC to authorise access from Korea or wherever it was..

Ian's link has /Auth at the end which seems to lock it up. It must need to do something from the base address before being redirected to /Auth
 
Hmmm stupid question alert ( i hate being naive).
Will the js file just be kept on my pc where i installed the webif where i can just open and edit???
 
Back
Top