Project

General

Profile

TV Head : The Windows Phone 8 TVHeadend app

Added by Frank Hanhart over 10 years ago

Hey guys,

I hope those interested in a WP8 app for TVHeadend are already aware I'm fiddling on the TV Head app in the Windows Phone Store. It has already been out in the Windows Phone Store since beginning of April and has hit the astonishing total of 73 downloads so far :). It can be downloaded from http://www.windowsphone.com/en-us/store/app/tv-head/36b44519-616f-4443-a0b1-8aa016aada39

Some background information first ; I'm far from a pro programmer; I just missed the lack of a TVH app for Windows Phone cause I own a Lumia 820. I've done some ASP.NET programming before with VB.NET for work, and thought it would not be that difficult to at least give the wp8 app a try. I've learned a lot since the 2 months I've working on it and try to provide a nice way to check your recordings and EPG from your Windows Phone.

My test environment consists of 2 TVH servers. My Prod system is version 3.5.116~ga2ccbb2. It's a dev build that I somehow setup at the beginning of me playing with TVH. It's rock-solid so far and the GF tells me not to touch it... :). The other server with each at least 1 DVB-C tuner (purely for EPG) is version 3.9.689~g236ebc9. The 3.9x versions haven't been stable enough for me yet to dare to convince the GF to use it as prod :) As there are a lot of changes in the JSON queries between these 2 versions, I test all my changes to both servers.

I'm currently working on getting the auto recordings nicely displayed, and allow to edit/delete and insert them.

I'm enjoying my own work on a regular basis by using the app. What I do miss is some feedback from the users ! Is the app working for you ? What do you miss, what do you find ugly, how often does it crash (no crashes so far according to WP Store but who knows..) What about the lay-out; Is it clear or clearly coming from a twisted mind ? :)

I was hoping to use this post as the main communication channel for anyone who has issues or wants to provide some comments to the TV Head app. You can also reach me on .

Many thanks,
Frank


Replies (22)

RE: TV Head : The Windows Phone 8 TVHeadend app - Added by Morten Trab about 10 years ago

Do you use HTTP API or HTSP protocol?

I'm trying to implement TVHeadend to my media app and are looking for HTSP support.

RE: TV Head : The Windows Phone 8 TVHeadend app - Added by Frank Hanhart almost 10 years ago

HTTP API only, no experience with building HTSP protocol..

RE: TV Head : The Windows Phone 8 TVHeadend app - Added by saen acro about 9 years ago

Is there will be a new version with new API?

RE: TV Head : The Windows Phone 8 TVHeadend app - Added by Wally Wally about 9 years ago

Anyone to test new TVHeadend Player for Win8.1/WP81 using HTSP protocol?

RE: TV Head : The Windows Phone 8 TVHeadend app - Added by saen acro about 9 years ago

There is no update.
ver 2.0.0.2 from 22.1.2015
up to 3.9

this show on Lumia 535

RE: TV Head : The Windows Phone 8 TVHeadend app - Added by Dreamcat 4 about 9 years ago

Please ditch your 3.9 install and move it up to 4.0.X. As version 4 is really good version and what we need people to provide better client support for now...

The biggest problem with 3.9 is that it's not possible to identify / communicate the version(s) of 3.9 which is are compatible / supported / etc. And which actually work. Since there were certain versions and periods of unstable 3.9 developemnt which were really bad in terms of memory leaks, crashing etc. Not good.

3.4 is too old now (lacking many significant features). And even in 4x - there's a bug affecting multi-user DVR profiles. Which wasn't resolved until the 4.0.6 release.

RE: TV Head : The Windows Phone 8 TVHeadend app - Added by Frank Hanhart almost 9 years ago

@Dreamcat, @saen acro,

your probably very right ! From 3.9 --> 4.0.7 --> 4.x there have been a lot of API changes. I decided it wasn't worth trying to keep up with these changes and wait for things to settle down. I have been running a 4.x version for some time, but it crashed quite often at the time. The trouble with moving back to my stable 3.9 version was that there is no downgrade path for i.e. recordings entries. For old recordings I could restore the config files, but new recordings made with a 4.x version are not compatible with 3.9 and would require manual editing of the files.

Even the latest stable 4.0.7 and the current 4.1.x builds still have a lot of differences, the major pain is building a 'version detect mechanism' for the TV Head app. It ends up in "try-and-error" API queries and make a lot of assumptions.

The support for 3.4 was there because at the time a lot of people ran that version on their Synology as it was the only pacakage available. Now it seems there are good 4.x packages available for Synology and I will probably drop support for 3.4 in one of the next releases.

The good news is that, although I lost 3 days of work because of a SSD failure, I'm close in releasing 3.0.0.0 of TV Head. I'm finalizing multilingual support for NL and DE, and make some final tweaks. It supports 3.4, 3.9 and from what I can tell 4.x quite well. A lot of rewriting has been performed, as it has moved from Silverlight to WinRT and MVVM model.

Keep watching at the Store for when the new release is there :)

RE: TV Head : The Windows Phone 8 TVHeadend app - Added by saen acro almost 9 years ago

"version detect mechanism"
http://tvh_ip_or_dns_name:9981/api/serverinfo

api = dict(
        getChannelGrid='api/channel/grid?start=0&limit=999999',
        getEpgGrid='api/epg/events/grid?start=0&limit=1000',
        getIdNode='api/idnode/load?uuid=' + arg1,
        getServiceGrid='api/mpegts/service/grid?start=0&limit=999999',
        getMuxGrid='api/mpegts/mux/grid?start=0&limit=999999',
        getChannelTags='api/channeltag/grid?start=0&limit=999999',
        getServerVersion='api/serverinfo',
        getRecordings='api/dvr/entry/grid_finished'
    )

https://github.com/realriot/tvheadend-ng.bundle/blob/master/Contents/Code/__init__.py

RE: TV Head : The Windows Phone 8 TVHeadend app - Added by Frank Hanhart almost 9 years ago

Within a couple of hours, the new version 3.0.0.2 should hit the Store ! :) :) :)

- Rewrite from Silverlight to WinRT
- German and Dutch support added
- 4.x support tested as far as 4.1-1207 - the higher your version, the better I hope
- Auto Refresh - uses long polling to receive server updates, which enables reduced bandwidth usage in case of LONG lists of recordings getting updated
- Nicer fresher GUI with more dynamic icons
- Auto Recording from the EPG
- Subscriptions/Streams status, incl CA (only with Auto Refresh enabled)
- Log view (only with Auto Refresh enabled)
- Dropped EPG Timeline. Maybe it'll come back at some point, but I never used it :)

Please let me know what you think, and how great/bad good it is :) In case of issues, try to give me as much info on your setup as possible, in order to see if I can reproduce the problem

RE: TV Head : The Windows Phone 8 TVHeadend app - Added by saen acro almost 9 years ago

First bug is your local server settings including user/pass
last saved settings overwritten

---------------
feature request
  • multiple servers
  • recording profiles
  • time of epg in local format
  • option to stop/abort record
  • landscape mode

RE: TV Head : The Windows Phone 8 TVHeadend app - Added by Frank Hanhart almost 9 years ago

saen acro wrote:

First bug is your local server settings including user/pass
last saved settings overwritten

Ouch :) Thaat should indeed be corrected !

---------------
feature request
  • multiple servers

I thought about this, purely because I have 2 test RPi's and 1 prod server... But in real life, I would recon most people only have 1 server.. ? What's your use ?

  • recording profiles

Can be selected when manually creating a recording, but selecting a EPG item for recording will default to the default profile... But maybe I'll add it to the "Once / Auto Recording" popup-box

  • time of epg in local format

Hmm.. That should be the case. Where are you from, what language did you select and what would you expect to see ? (i.e. English sets it to AM/PM, but maybe you want 24H clock ?). I have only tested this with the languages implemented not others.

  • option to stop/abort record

You mean an option to either stop, or abort a recording (basically putting it in Finished or in Failed recordings) ? Running recordings will abort by default when hitting the REC button again on the EPG item, or deleting the from the Upcoming Recording list. You'd like to have the option there to Stop them (to put them in Finished Recordings?

  • landscape mode

Hmm......:) Will see how it would look like :p

RE: TV Head : The Windows Phone 8 TVHeadend app - Added by saen acro almost 9 years ago

Again after update configuration "port" disappear

  • multiple servers

better to have then tot to have

  • time of epg in local format
    It's completely wrong to set location in translation
    it must be get from device settings
  • option to stop/abort record
    same idea as on web interface of TVH
    just to abort record without any files left

p.s.
Any plans to include video streaming in app,
aka live view and recording view with and without transcoding?

RE: TV Head : The Windows Phone 8 TVHeadend app - Added by Frank Hanhart almost 9 years ago

multiple servers : For the moment, no..

time of epg in local format : you didn't answer any of my questions related to that but I agree that date/time format should be as per regional settings on your phone. Seems that WinRT has big issues getting this to work properly, but I'm trying to get that fixed somehow.

No streaming support : I don't need it, and it would be entirely a different thing to built. I have 6/7 kodi boxes in the house, ranging from tablet to PC and TV, and would never watch TV on my phone... But if somebody has a complete set of code that is up-to-date and can easily be implemented, I can give it a try.

RE: TV Head : The Windows Phone 8 TVHeadend app - Added by saen acro almost 9 years ago

My regional setting are Bulgaria

About streaming don't thing is so hard just need to send authenticated url to media player
http://USER:PASS@url_or_ip:PORT/url_to channel&profile=stream_profile
or playlist get from server from
http://URL_or_ip:PORT/playlist/channels

RE: TV Head : The Windows Phone 8 TVHeadend app - Added by Frank Hanhart almost 9 years ago

Version 3.0.1.0 released :
- Added support for localized Date/Time format. WinRT has some big issues in using date/time format in Regional Settings on the phone. I've added a list with most languages, which forces the app to show date/time in the selected format. Remainder of the app stays in English, unless it's supported by the app (Dutch/German)
- Added option to select recording profile when starting a recording
- Removed 3.4 support
- Support for users with restricted access. App handles authentication in a much better way.
- Small bugfixes and code cleanup

RE: TV Head : The Windows Phone 8 TVHeadend app - Added by saen acro almost 9 years ago

Small bug:
When BACK button pressed multiple times app not exit,
only possible way to exit is to task switch and kill.

RE: TV Head : The Windows Phone 8 TVHeadend app - Added by Frank Hanhart almost 9 years ago

saen acro wrote:

Small bug:
When BACK button pressed multiple times app not exit,
only possible way to exit is to task switch and kill.

Right, that has been fixed :)

RE: TV Head : The Windows Phone 8 TVHeadend app - Added by Frank Hanhart almost 9 years ago

For those interested in looking at the code : I decided to start using GitHub as source control, for the main reason people can contribute to making the app better, and providing all to make their own app, or continue development if time doesn't allow me to do so :)

You can find the source code on https://github.com/hansworst24/TVHead

I still need to learn a bit how github works, but overall I think people can contribute and every now and then I can update the App Store version.

Be sensitive with my code : I've self-learned the language and it might give pro-developers the YIKES, especially the complete lack of comments... :-)

RE: TV Head : The Windows Phone 8 TVHeadend app - Added by saen acro almost 9 years ago

Strange BUG

2016-01-03 14:50:31.714 http: 151.237.xxx.xx: HTTP/1.1 GET /api/dvr/entry/grid_upcoming -- 401
2016-01-03 14:50:31.865 http: 151.237.xxx.xx: HTTP/1.1 GET /api/status/subscriptions -- 401

application crash directly
I update TVH to latest version same thing

possible solution

1. APP load
2. After delay try to load server configuration and connect
3. If error, show message or directly send to configuration

RE: TV Head : The Windows Phone 8 TVHeadend app - Added by Frank Hanhart almost 9 years ago

Can you retry with an admin account to see if the issue persists ? 401 = unauthorized, but indeed should be catched correctly by the app now

RE: TV Head : The Windows Phone 8 TVHeadend app - Added by saen acro almost 9 years ago

I put my home ip to without username and pass by IP no results.
When connect with 3G no problem aka with user/pass.

RE: TV Head : The Windows Phone 8 TVHeadend app - Added by saen acro over 5 years ago

Is there will be update?
In windows phone 10 work perfect, but if its in W10 Store for desktop will be great.

    (1-22/22)