Based on the original plugin I've made some changes to get the plugin work with the new tvheadend. There were some api modifications at tvheadends site...
But I cannot get the PMS work to stream the TV-Channels.
After fetching all informations about the (TV) Channel I'll create the video-object:
mo = MediaObject(
parts=[PartObject(key=HTTPLiveStreamURL("%s%s" % (htsurl, id)))]
)
vco = VideoClipObject(
title=name,
thumb=icon,
summary=summary,
duration=duration,
key=Callback(mediaLookup, title=name, thumb=icon, id=id, rating_key=id),
rating_key=id
)
vco.add(mo)
channelList.add(vco)
I've read, that I need a callback for the key to get the metadata of the stream.
@route('/video/tvheadend/lookup')
def mediaLookup(title, thumb, id, rating_key):
oc = ObjectContainer()
Log("%s%s" % (htsurl, id))
oc.add(
VideoClipObject(
title = title,
thumb = thumb,
key=Callback(mediaLookup, title=title, thumb=thumb, id=id, rating_key=rating_key),
rating_key=id,
items = [
MediaObject(
parts = [PartObject(key=HTTPLiveStreamURL("%s%s" % (htsurl, id)))],
)
]
)
)
return oc
After restarting the PMS I can access the videoclip. But starting the playback results in the following errormessage:
Error loading player:
No playable sources found
Any hints what could be the problem and where I could start debugging?
Greets,
Sascha