Kodi Community Forum
Custom PVR addon development - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+---- Forum: PVR (https://forum.kodi.tv/forumdisplay.php?fid=136)
+---- Thread: Custom PVR addon development (/showthread.php?tid=282898)



Custom PVR addon development - Karolis2011 - 2016-07-16

Recently, my local ISP launched IPTV service, with two week archive feature. It is officially available on PC, over web browser, Tablet and phone, over custom app, and on TV, over 2015 Samsung Smart TV app or special rented IPTV client.

I as tinkerer / hacker, decided to look how web player works, it appears to be using JW player, some Javascript and custom API that returns JSON. It has authentication, but it seems insecure, just a simple HTTP (not HTTPS) POST call, that probably sets cookie, or remembers IP, and allows to use other parts of API.

I managed to get channel addresses from API (which were .m3u8 URLs) and make playlist in VLC for Simple IPTV addon, and it worked, tho doing so completely avoids authentication (what might not be really legal) on playback and lacks features, like channel names, channel images, EPG data, timeshift and archive.

After that success, I wondered if I could make custom addon, based on Simple IPTV addon, that directly authenticates with API and gets channel list, images and EPG data. Unfortunately it ended up in 4 hours wasted on trying to get cmake, and clone of Simple IPTV addon working. So I eventually came to #kodi on Freenode IRC server, from where I got redirected to Kodi Forums (here). So I am mostly how I should clone IPTV Addon and built upon it?

Also I got question, how I should implement archive feature (To find a way to bult on same PVR addon or add another Video addon)?


RE: Custom PVR addon development - sualfred - 2016-07-16

Not familiar or skilled in ANY binary addon developement, but maybe the Zattoo PVR addon is a good source for your to see how others implemented such a service:
https://github.com/trummerjo/pvr.zattoo

Zattoo website: www.zattoo.com


RE: Custom PVR addon development - Karolis2011 - 2016-07-16

pvr.zattoo looks so close to what I am aiming for, but code seems to lack support of archive, what shouldn't be a big issue.

Anyway, my main problem still exists, I don't know how to clone addon and modify it. Still hoping for anyone with knowledge of binary plugin development to step in.

EDIT: I might try to clone zattoo addon, maybe it will be more successful?

EDIT2: I wasn't really successful with cmake.


RE: Custom PVR addon development - welshboy - 2016-07-17

I'm trying to figure out support for archived content too. As far as I can see, when a user clicks an item and a request for stream URL is made, it only sends the channel data. Not the program data (which I assume you'd need to know which archive url to serve)

The IPTV service I use, uses a unique ID for each program, so If i could get hold of what program ID was clicked, it'd be pretty simple to serve the correct URL