I'm parsing an rss feed for my new channel. The feed contains everything I want to know about an episode: duration, codec, et cetera. The feed also contains a direct link to a .mp4.
Can I play the .mp4 without creating a new service file? That seems like a bit too much because I have all the information. I'm trying it now like this:
@route('/video/jupiterbroadcasting/show/{show_name}')
def ShowMenu(show_name):
show = getShow(show_name)
rss = getShowEpisodes(show)
oc = ObjectContainer(title2=show_name, view_group='InfoList')
for entry in rss.entries:
show_name = show['name']
title = entry.title
summary = entry.subtitle if entry.has_key('subtitle') else 'Test'
date = datetime.fromtimestamp(mktime(entry.updated_parsed))
url = 'http://201308.jb-dl.cdn.scaleengine.net/coderradio/2013/cr-0063-432p.mp4'
oc.add(EpisodeObject(
url = url,
title = title,
summary = summary,
thumb = 'http://www.jupiterbroadcasting.com/wp-content/uploads/2013/08/cr-0063-v.jpg',
originally_available_at = date,
items = [
MediaObject(
parts = [
PartObject(key=url)
],
container = Container.MP4,
video_codec = VideoCodec.H264,
)
]
))
break
return oc
But I still keep getting:
2013-08-25 00:36:19,499 (7f4b2f7fe700) : DEBUG (networking:172) - Requesting 'http://www.jupiterbroadcasting.com/feeds/indepthlookihd.xml' 2013-08-25 00:36:19,963 (7f4b2f7fe700) : WARNING (objectkit:199) - Media part has no streams - attempting to synthesize 2013-08-25 00:36:19,965 (7f4b2f7fe700) : DEBUG (services:602) - No service found for URL 'http://201308.jb-dl.cdn.scaleengine.net/coderradio/2013/cr-0063-432p.mp4' 2013-08-25 00:36:19,965 (7f4b2f7fe700) : DEBUG (services:617) - No matching services found for 'http://201308.jb-dl.cdn.scaleengine.net/coderradio/2013/cr-0063-432p.mp4' 2013-08-25 00:36:19,965 (7f4b2f7fe700) : DEBUG (services:41) - Loading service code for Fallback (URLServiceRecord)
And then a "This channel is currently unavailable" on /web.
I'm a little stuck here. Does anyone know of an existing plugin that plays direct video files?