[custom-portal] Custom TV Portal

Newbie question {winces} Havent seen this before, accessed via PC, how can this/ does this relate to the humax in terms of being able to access all this content via the box, or display it on my TV via the PC?

Everything that accesses the Humax TV portal uses the same web address, However each item tells the website what it is, so that the screen that is sent back can be different for each item that contacts the site. A Set Top Box in Germany will get a different screen to one in the U.K. and a P.C. will get yet another screen
 
In addition, the connection between the Humax and the portal website is encrypted (which accounts for some of the delay in setting up the connection) and the Humax authenticates with the site using a model-specific private encryption key*. It then sends its MAC address and System ID over that encrypted connection. Lots of ways for Humax to customise the content depending on the box, for example the beta testers had a different System ID and that was the key for Humax to present Sky Player as an option.

* It is possible to extract the key, unprotect it and load it into a standard web browser at which point you see exactly the same page as on the TV screen.
 
Chris thanks for uploading the photoshop template - sadly I don't have photoshop... when I said "basic monitor" it is very very basic ... it just <img src> to load the image full screen with the HTML meta refresh tag to reload the image every few seconds. I do have the camera ( A FI8918W ) SDK so I'm thinking it might be possible to do pan / tilt etc via the remote and make the whole thing a bit more slick - like have it in the corner of the screen - great idea! If I do get the time to do any more on it I'm happy for it to be included in the portal of course.

Anyway here's the "code" so far

Code:
#!/mod/bin/jimsh

package require cgi
source /mod/var/mongoose/lib/setup

puts "Content-Type: text/html; no-cache"
puts "Expires: Thu, 01 Jan 1970 00:00:00 GMT"
puts "Pragma: nocache"
puts ""

puts {<!doctype html>

<html>
<head>
<META HTTP-EQUIV="REFRESH" CONTENT="10">

<title>Your Cam</title>
<link type="text/css" href="css/style.css" rel="Stylesheet" />
</head>

<body>
<div id=main>
<center>

<img src=http://192.168.0.X/snapshot.cgi?user=user&pwd=password width=1270 height=768>

</div>
</body>
</html>

}
 
Been doing some testing on streaming.
If you want a basic streamer, replace the code in test1 or test2 with this (replacing the .mp4 file location with the file you want to stream)
This might work for your IP Camera too if that outputs a steam.

I've doctored it so it blanks the broadcast video before loading, and should turn it back on when finished.

This is in no way complete - its only hacked together for testing.

Code:
#!/mod/bin/jimsh

package require cgi
source /mod/var/mongoose/lib/setup

puts "Content-Type: text/html; no-cache"
puts "Expires: Thu, 01 Jan 1970 00:00:00 GMT"
puts "Pragma: nocache"
puts ""

puts {<!doctype html>
<html>
<head>
<title>Test page</title>
<link rel="stylesheet" href="css/wfnb.css" type="text/css" media="screen,projection" />
  <script type="text/javascript">
//<![CDATA[
var player = null;
var broadcast = null;
window.onload = function() {
  if (document.location.hash.substr(1,1)=="a") { loop1 = 1; }
  document.addEventListener("keydown", function(e) { if (tastendruck(e.keyCode)) e.preventDefault(); }, false);
  try {
    broadcast=document.getElementById('video');
    player = document.getElementById('video1');
    player.onPlayStateChange = function() { updatePlayState(); };
    player.data = 'http://videos.revision3.com/revision3/web/diggnation/0335/diggnation--0335--hackingsiri--large.h264.mp4';
    broadcast.setTVOff();
    player.play(1);
  } catch (e) {
    alert('Cannot play video');
    loadpopup1();
    if (loop1==1) {
      window.setTimeout(function() {document.location.href = "index.html#a1"; }, 81000);
    } else if (loop1==0) {
        window.setTimeout("startseite(1)", 81000);
      }
  }
};
function updatePlayState() {
  if (player.playState==1) { // video playing
    loadpopup1();
  }
  if ((player.playState==5)&&(loop1==1)) { // video finished
    document.location.href = "index.jim";
    broadcast.setTVOn();
  } else if ((player.playState==5)&&(loop1==0)) {
      startseite(1);
    }
}

var fokus0 = 1;
function loadpopup3() {
  document.getElementById("content").className = "show";
  displaynr = 3;
  visible('ausgeblendet', displays[displaynr]);
  if (loop1==1) { window.setTimeout("nextdisplay()", 4500); }
  window.setTimeout("hideit(displays[displaynr])", 16300);
}
function loadpopup1() {
  displaynr = 1;
  window.setTimeout("visible('ausgeblendet', displays[displaynr])", 23500);
  if (loop1==1) { window.setTimeout("nextdisplay()", 27300); }
  window.setTimeout("hideit(displays[displaynr])", 37400);
  window.setTimeout("loadpopup3()", 53500);
}
//]]>
</script>
</head>

<body>
<div id="hashes"><a name="a1"></a></div>
<object id="appmgr" type="application/oipfApplicationManager" style="position: absolute; left: 0px; top: 0px; width: 0px; height: 0px;"></object>

<object id="video" type="video/broadcast"></object>
<object id="video1" type="video/mp4" style="position: absolute; left: 0px; top: 0px; width: 1280px; height: 720px; outline: transparent; -ant-user-input: disabled; -ant-highlight-colour: transparent;"></object>

<div id="content" class="hide">
<div id="panel" class="hide">
  <img src="img/panel-allin1-bg.png" />
  <div id="panel-text-li">Ausblenden</div>
  <div id="panel-text-re"></div>
</div>
<div id="popup1" class="hide">

</div>
</body>
</html>
}
 
Because it would require a page that's constantly waiting for a video to be pushed to it. Like a listener.

Have a look to see if it's possible to create an HTML page that does this for some ideas.
 
I've been playing around trying to get on demand videos working on sky player. After reading the post on dissecting the portal (http://hummy.tv/forum/threads/dissecting-the-humax-tv-portal.259/) I had a go at changing the url for sky player in the index.jim file.

I tried increasing the version number in the url and the highest I could find was: https://www.humaxtvportal.com/Apps/sky_player/0.8.20/preset/init/init.html (note: this url only works when viewed from the humax box)

This appears to be a slightly newer version but on demand still does not work. I'll keep trying more random version numbers to see if I can find a newer one!
 
What would e nice (and simple as far as I can see) would be to have the iplayer button on the cutom portal as well. This would avoid having to swap between the two portals to switch from BBC to Sky

For that mater why don't we just put all the existing poral buttons onto the custom one, then make it load up directly into the custom portal page, and then have a button to link back to the Humax one on the custom portal, this way we avoid having to select which portal we want every time we use it.

Or what about having a setting to select how this works

e.g. 1) Humax portal only
2) Custon Portal by Default (with Humax buttons added to it as well as link to settings page, and the humax portal)
3) Existing Menu Structure
 
I understand your point, but the main point of the custom portal is to add additional content that is not on the humax portal. This means if humax change anything or update an app, we don't have to rewrite anything.

When and if we get additional catch up services or streams up and running, then maybe we could look at lumping them all together on one page for ease of use. For the time being though, it's not a huge issue to me.
Keep in mind, it is still relatively early days for the custom portal.
 
Thanks for the reply. I was just thinking of a way of making the custom portal a 'replacement' for the humax one instead of an add on. Im now using Sky player all the time as I don't have multi room as it costs a bomb :)

I'll have a look at making some changes myslef
 
Morning all,
Can anyone help me try to resolve my skyplayer issue? What steps i need to follow to correct?
I can access Sky Live streaming tv, high quality, no issue. I cannot access any on demand content and get an error 1701 everytime.
My Humax is connected via wire to my router, i have no issues with my internet on the PC, or the main portal on the Humax with BBC player.
It may also be related but twitter also says loading for a fair while, i havent yet waited long enough for it to connect, i get fed up. :confused:
just want to correct my Sky issue.
I have a HDRT2, the 1tb version. Running latest firmware and the custom firmware i downloaded about 2 weeks ago.
My BB connection isnt the fastest but as i say i can stream no problem and normal TV portal is ok...
Any idea what i can do to resolve? Its a constant problem from the day i first installed the firmware.
Be easy on me with any techy speak my brain may melt. :)
Grateful for any help.
 
Let's be clear about this: you can access live Sky via the custom portal but not on-demand via the custom portal?

You do realise this is experimental, and critically dependent on tapping into services at the remote end we are not supposed to be tapping into? No warranty given or implied.

First we need to establish whether this is a problem only you are seeing (and therefore could possibly have a solution) or that everyone (with Sky) is seeing (and therefore awaits further development on the custom portal front). Post #228 (only a few days ago) suggests this is a feature which does not work yet.
 
Yup, live sky tv via the custom portal is fine, content that is days old cannot be accessed at all. Happy that what's being done is experimental but i assumed others had no issue with on demand as i had not read before that post that anyone except me had a problem.
If its not working for anyone else then i stand down!!
Be good to get others feedback on whether the OD works for them.
 
I think the errors are because Sky have changed something in the backend. I'm seeing this error posted on DigitalSpy too.
I don't use it myself however, so I cannot confirm if it works or not.
 
I think the errors are because Sky have changed something in the backend. I'm seeing this error posted on DigitalSpy too.
I don't use it myself however, so I cannot confirm if it works or not.
Not being techy do you think its something that will/ could be worked on? It sounds then like it worked previously.
Its a real shame
 
martypants16 you need to remember I am not Sky or Humax & you are using the SkyPlayer software before it has been officially released by modifying the portal. There is a reason it has not been officially released yet!

You're just going to have to take this as you find it as it would be a waste of time to try and fix something that Sky & Humax are still building. :rolleyes:

As I posted a few days ago, a couple of new apps have appeared on the official portal (when viewed on a PC) which indicate that SkyPlayer is still in development, possibly spurred on by our own developments at releasing it. If I get chance at the weekend, I will look to update the portal to point to this "new" version which may fix your issues.

But as BlackHole quite nicely put above, there is No warranty given or implied that this will work or continue to work. ;)
 
Ok, i just asked in case someone said " i had that issue, do this and it works", i understand the fluid nature of the work in progress.
 
when I said "basic monitor" it is very very basic ... it just <img src> to load the image full screen with the HTML meta refresh tag to reload the image every few seconds.

Here's a version which just shows a slightly transparent image in the top left corner and refreshes it. It also allows pan/tilt using the arrow keys on the remote control - feels a bit weird controlling the camera with the TV remote though!

http://hummypkg.org.uk/foscam.jim

Also use the red button to reload the page (useful when making code/layout changes) and back or blue to go back to the custom portal start screen.
 
Back
Top