Open MsVibe opened 2 years ago
This page gives the Kaltura media item with partner ID 2158211
and entry ID 1_24gfa7qq
. The item is a KalturaLiveStreamEntry
, for which there is no dataUrl
. The Kaltura extractor doesn't expect this, presumably because it does not support live streams.
The extractor needs also to ask for the liveStreamConfigurations
field when calling the Kaltura API. When a live stream is found (ie with objectType
KalturaLiveStreamEntry'
), the extractor should set the is_live
metadata field to True
and get the formats from the entries in info['liveStreamConfigurations']
, which looks like this:
[
{
'protocol': 'hds',
'url': 'https://cdnapi.kaltura.com/p/2158211/sp/215821100/playManifest/entryId/1_24gfa7qq/protocol/https/format/hds/a.f4m',
'publishUrl': null
},
{
'protocol': 'hls',
'url': 'https://cdnapi.kaltura.com/p/2158211/sp/215821100/playManifest/entryId/1_24gfa7qq/protocol/https/format/applehttp/a.m3u8',
'publishUrl': null
},
{
'protocol': 'applehttp',
'url': 'https://cdnapi.kaltura.com/p/2158211/sp/215821100/playManifest/entryId/1_24gfa7qq/protocol/https/format/applehttp/a.m3u8',
'publishUrl': null
},
...
]
With a few changes on these lines I was able to watch some politicians in open-necked shirts discussing foreign policy. A proper PR is needed; meanwhile you can use the M3U8 URL above.
Thank you very much
Checklist
Verbose log
Description
Folketinget TV - Danish parliament