XBMC Community Forum
[dev] CetonTV+HDHomeRun - Watch TV on XBMC (WIN/OSX) - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Python Add-on Development (/forumdisplay.php?fid=26)
+--- Thread: [dev] CetonTV+HDHomeRun - Watch TV on XBMC (WIN/OSX) (/showthread.php?tid=119865)



- mcheng89 - 2012-02-23 16:10

uspino Wrote:Now we are talking! It's really nice. It looks like it is a lot of work to make it work right with rotation, video, etc. When I input channel number I get this pop-up:

[Image: photo.png]

When I click ok video starts normally.

EDIT: I'm guessing Fovorites is the harder to implement because it requires user input. At this point, maybe you could just explain users how and where to add the code line for a specific channel/logo.

Favorites isn't too big of an issue. The layout still might change.
I think I have a decent way of showing channels with pages Smile
Not too sure how I feel about the channel input tab. Maybe a popup instead?..

This layout was made for the iPhone screen size. if I made a iPad one it would look different Smile


Also if anyone has an Android honeycomb device, I think the video should also work! Smile


- uspino - 2012-02-23 16:39

One thing I noticed, on channels with a scrolling ticker (usually sports & news), if you look at the text there's a noticeable little jump on the video every half a second. It only happens on iOS devies. I'm assuming it has to do with FPS or interlacing, but maybe someone with video econding knowledge can shed some light about it.


- mcheng89 - 2012-02-23 16:43

gman3042 Wrote:http://pastebin.com/reV04BRn

tehre you go

here's hoping Big Grin

Todo: figure out how to read this file :|
^Should be easy... There's a lot of hdhomerun strm generators


- gman3042 - 2012-02-23 17:26

welp, that doesn't sound good does it?

http://ubuntuforums.org/archive/index.php/t-1849603.html

perhaps that helps a little?


- europorsche914 - 2012-02-23 22:57

I have been been following this thread but havent had much time to give any input lately.. I started working on parsing epg data on my webpage so my brother can watch tv from the marine base in okinawa, japan. It would be much easier to handle this data if it was sent by the remoteceton api in xml format, that way simple javascript xml handling can be used.. For now I probably just parse the xml file that is downloaded by mc2xml. Just a thought!


- mcheng89 - 2012-02-23 23:47

europorsche914 Wrote:I have been been following this thread but havent had much time to give any input lately.. I started working on parsing epg data on my webpage so my brother can watch tv from the marine base in okinawa, japan. It would be much easier to handle this data if it was sent by the remoteceton api in xml format, that way simple javascript xml handling can be used.. For now I probably just parse the xml file that is downloaded by mc2xml. Just a thought!

There's an API call for the epg data in json format.
If you need help using it, let me know!
I'll put in an example later, when I get home.


Todo:
Code:
function getEPGData(start_time, end_time, channels) {
    if (window.XMLHttpRequest)
    {// code for IE7+, Firefox, Chrome, Opera, Safari
        xmlhttp=new XMLHttpRequest();
    } else
    {// code for IE6, IE5
        xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
    xmlhttp.open("POST","/getEPGData",false);
    var request = {
        start_time: start_time,
        end_time: end_time,
        channels: channels
    };
    xmlhttp.send(JSON.stringify(request));
    xmlDoc=xmlhttp.responseText;
    return JSON.parse(xmlDoc);
}

var epg_data = getEPGData(parseInt(new Date().getTime()/1000), (parseInt(new Date().getTime()/1000)+5400), [1,2,3,4,5,6,7,8,9,10]);
if (epg_data["1"]) {//do we have channel 1 data?
    alert("Number of programs for channel 1: "+epg_data["1"].length);
    if (epg_data["1"].length > 0) {
        alert("First program for channel 1: "+epg_data["1"][0].program_title);
        alert("First program for channel 1: "+epg_data["1"][0].start_time);
        alert("First program for channel 1: "+epg_data["1"][0].end_time);
    }
}
^ Didnt test it


- uspino - 2012-02-24 02:38

How's everything coming up tonight? Any help?


- mcheng89 - 2012-02-24 02:46

uspino Wrote:How's everything coming up tonight? Any help?

Probably favorites and channel list...
It's been slow since I have to learn how to use that library for the interface.
And I haven't had too much time to work on it

Issues: settings are not saving....

Figured out channel list! Smile
I think its a clean way to do it.

[Image: 2j2vvqw.jpg]

^ Just a mockup... Still have some improvements to make


- uspino - 2012-02-24 03:48

I noticed that. Also, it looks like resolution is always the same, regardless of what you choose in settings... I try lowest and highest on the iPad and they both look the same.

EDIT: Channel List looks really nice.


- mcheng89 - 2012-02-24 04:19

uspino Wrote:I noticed that. Also, it looks like resolution is always the same, regardless of what you choose in settings... I try lowest and highest on the iPad and they both look the same.

EDIT: Channel List looks really nice.

Fixed:
- Settings saves now

Todo:
- Finish channel list
- Finish Favorites
- Redesign Input Channel
- Create bandwidth calculator for settings window
- Make icon + load screen

Requoting this to remind me:
uspino Wrote:A few things/ideas:

- A lot of (small) .ts files remain in the webfiles folder. Should there be a clean up line in the code?

- It would be good to be able to select the temp folder for the transcoding files.

- Are you thinking about a different interface for iPhone/iPad (on iPad looks extremely small)

- Is there a way to start a video stream on an iOS device from a shortcut containing channel & transcode settings, the same way you can do it on VLC? That would be fantastic: you could create a shortcut to, say, ESPN, and just start streaming, or we could create a folder with shortcuts to favourite channels (and there are free apps on the store to assign a logo to each shortcut)