Hi,
I've built a plugin to play m3u8 links found on the web (mostly thanks to IPTVLite.bundle), so I already have all the menu structure and html scraper built.
But now I need to play blob:html links
How can I modify this function to play
"blob:http://www.la7.it/0ad86d9e-0fee-4840-afe7-044408c3600e"
scraped from
<video id="player_la7_2902_video_Html5Hls_api" class="vjs-tech" preload="metadata" playsinline="true" src="blob:http://www.la7.it/0ad86d9e-0fee-4840-afe7-044408c3600e"></video>
??
@route('/video/test/show', include_container = bool)
def Show(url, title, include_container = False, **kwargs):
vco = VideoClipObject(
key = Callback(Show, url = url, title = title, include_container = True),
rating_key = url,
title = title,
items = [
MediaObject(
protocol = Protocol.HLS,
container = Container.MP4,
video_codec = VideoCodec.H264,
audio_codec = AudioCodec.AAC,
audio_channels = 2,
optimized_for_streaming = True,
parts = [
PartObject(
key = HTTPLiveStreamURL(Callback(Play, url = url))
)
],
)
]
)
if include_container:
return ObjectContainer(objects = [vco])
else:
return vco
@indirect
@route('/video/test/play.m3u8')
def Play(url, **kwargs):
Log(' --> Final stream url: %s' % (url))
return IndirectResponse(VideoClipObject, key = url)