Hey guys, I'm kinda lost in this plugin development. The online docs are insufficient and I've been looking at the framework it self for reference, but I'm having one issue in particular thats bugging me.
def SpilaRas1(): mc = ObjectContainer() url = "http://sip-live.hds.adaptive.level3.net/hls-live/ruv-ras1/_definst_/live/stream1.m3u8"track = TrackObject( url = url, key = HLSURL(url), title = "RAS 1", artist = "RUV", summary = "BEIN UTSENDIND", album = 'Hvad stendur her?', duration = 999, rating_key = 0, # thumb = image, # art = image ) media = MediaObject( protocols = Protocol.HLS, bitrate = 44100, parts = [PartObject(key=Callback(PlayLiveAudio, url=url, ext='ts'))], container = Container.MP4, audio_codec = AudioCodec.AAC, audio_channels = 2 ) track.add(media) mc.add(track) return mcdef PlayLiveAudio(url):
return Redirect(url)
The damn thing won't play, neither in PHT nor the Web interface.
Am I overseeing something?