def libWdrPlay(self): if 'm3u8' in self.params: return { 'media': [{ 'url': self.params['m3u8'], 'type': 'video', 'stream': 'HLS' }] } else: return libWdrParser.parseVideo(self.params['url'])
def libWdrPlay(): if 'm3u8' in params: d = {} d['media'] = [] #d['media'].append({'url':params['m3u8'], 'type': 'video', 'stream':'HLS'}) d['media'].append({ 'url': params['m3u8'], 'type': 'video', 'stream': 'mp4' }) return d else: return libWdrParser.parseVideo(params['url'])
def libWdrPlay(): if 'm3u8' in params: result = {} result['media'] = [] #d['media'].append({'url':params['m3u8'], 'type': 'video', 'stream':'hls'}) result['media'].append({ 'url': params['m3u8'], 'type': 'video', 'stream': 'mp4' }) else: result = libWdrParser.parseVideo(params['url']) result = libMediathek.getMetadata(result) return result
def libWdrPlay(): return libWdrParser.parseVideo(params['url'])