Req Pure XML-over-HTTP based PVR plugin
#1
Lightbulb 
Hi there fellow developers.

I have just recently developed a TV backend designed to fit custom major IPTV provider in Czech Republic.
It has streaming, recording and EPG abilities and is written in C# and PHP, the streaming itself is provided
by spawning multiple VLC processes.

Only problem is, I can't code in C or C++.

Therefore I am asking, if you know (or are planning to develop) any PVR addon, that would be based purely on
XML over HTTP.

My vision is like this:
http://host/channels.xml would provide channels in some pre-agreed format
http://host/shows.xml would provide EPG in a pre-agreed format
etc for recordings
You could create new recording by calling http://host/record with POST or GET parameters being channel id, start time and end time
(preferably defined as unix timestamp). The watching itself would be solved by passing the direct stream URL in the channels xml,
watching recorded files would be basically equal (passing either URL or full path and filename).

This plugin could be released with the URLs configuration and little documentation so everybody could make their own XML based backend.

What do you think? Does this sound interesting to you?
(Actually, the PVR demo addon is halfway there, it just doesn't support creating recordings and getting the files from HTTP).
Reply
#2
there's nothing implemented to download files from a webserver in add-ons.
you'd either need to expose XBMC's methods to do this, or implement it in an add-on. both require coding C++
opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
Reply
#3
I guess it is not possible to write the add-on in C#?
Reply
#4
It may be possible using interop for unmanaged/managed code but it doesn't make any sense. You would need to distribute .NET runtime with this plugin.
Reply
#5
Well the backend is also written in C# so the user has to get it at some point. I know it is not the best way to do it, but it's a start. I don't fancy the idea of learning to develop in a different programming language just to see, if it will work at all. But if I succeed in doing this in C#, I will of course publish the source so anyone else could rewrite the plugin. Maybe once it's done, I might even try to do it myself, they are both c-based languages after all.

I must add that I am not a very good programmer, I can code, of course, but I tend to make a dirty code full of nasty hacks. I am more of a network analyst and reverse engineer. But when I use some simpler language (I believe we can agree that C# is much simpler to code in than C++), it gives me less space to do such things.
Reply
#6
even if you manage to do this in C# and get XBMC to load it, then your code would be limited to platform(s) with .Net
opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
Reply
#7
I understand that, but it's still better than nothing, isn't it? Smile)
Reply
#8
Just info: IPTV Simple PVR Plugin does this.

It can't service recording and scheduler but watching works, channels listing works, the whole epg works...
Reply

Logout Mark Read Team Forum Stats Members Help
Pure XML-over-HTTP based PVR plugin0