Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPTV Simple client has never been able to play mpd (mpeg-dash) as claimed #840

Open
aseanic opened this issue Feb 20, 2024 · 1 comment
Open

Comments

@aseanic
Copy link

aseanic commented Feb 20, 2024

SInce when Kodi could play MPEG-DASH? We understand it's not kodi priority to implement clearkey or widevine yet after all these years but those simple streaming mpd playlist without key also Kodi is unable to play them.

Here some examples of license free mpd playlist with no extra parameters, that other players able to play but not kodi.

#EXTINF:-1, Tayo+
https://cdn-apse1-prod.tsv2.amagi.tv/linear/amg00640-lydnetwork-tayoplus-dash-sooka/index.mpd

#EXTINF:-1, TesteMade
https://cdn-apse1-prod.tsv2.amagi.tv/linear/amg00047-tastemade-tastemadeintlaus-dash-sooka/index.mpd

#EXTINF:-1, GustoTV
https://cdn-apse1-prod.tsv2.amagi.tv/linear/amg01077-gustoworldwidem-gustotv-dash-sooka/index.mpd

#EXTINF:-1, InfamousTV
https://cdn-apse1-prod.tsv2.amagi.tv/linear/amg01324-infamousmedia-infamoustv-dash-sooka/index.mpd

#EXTINF:-1, K.Popcorn
https://cdn-apse1-prod.tsv2.amagi.tv/linear/amg01944-ktalpha-kpopcorn-dash-sooka/index.mpd

#EXTINF:-1, EDGE Sport
https://cdn-apse1-prod.tsv2.amagi.tv/linear/amg00545-edgenetworks-edgesport-dash-sooka/index.mpd

#EXTINF:-1, MTRSPT1
https://cdn-apse1-prod.tsv2.amagi.tv/linear/amg02873-kravemedia-mtrspt1-sooka-dash-sooka/index.mpd

#EXTINF:-1, Bollywood Prime
https://cdn-apse1-prod.tsv2.amagi.tv/linear/amg00877-b4unetworkeurop-bollywoodprime-dash-sooka/index.mpd

#EXTINF:-1, Yrf Music
https://cdn-apse1-prod.tsv2.amagi.tv/linear/amg00223-unisysinfo-yrf-music-dash-sooka/index.mpd

#EXTINF:-1, ESTV Sport
https://cdn-apse1-prod.tsv2.amagi.tv/linear/amg00303-televisionkorea-estv-dash-sooka/index.mpd

Here a sample script to enable a normal web browser like chrome to play license key mpd that Kodi dev unable to code them in IPTV simple client

`<script>
const manifestUri = "https://xxxxxxxxxxx.xxxx/default.mpd";
async function init() {
const video = document.getElementById('video');
const ui = video['ui'];
const controls = ui.getControls();
const player = controls.getPlayer();
window.player = player;
window.ui = ui;
player.configure({
drm: {
"clearKeys": {
'xxxxxxxxxxxxxxxx'
}
}
});
player.addEventListener('error', onPlayerErrorEvent);
controls.addEventListener('error', onUIErrorEvent);
try {
await player.load(manifestUri);
console.log('The video has now been loaded!');
} catch (error) {
onPlayerError(error);
}}

    function onPlayerErrorEvent(errorEvent) {
        onPlayerError(event.detail);
    }

    function onPlayerError(error) {
        console.error('Error code', error.code, 'object', error);
    }

    function onUIErrorEvent(errorEvent) {
        onPlayerError(event.detail);
    }

    function initFailed(errorEvent) {
        console.error('Unable to load the UI library!');
    }
    document.addEventListener('shaka-ui-loaded', init);
    document.addEventListener('shaka-ui-load-failed', initFailed);
</script>`

Please do something before Kodi 21 release!

@phunkyfish
Copy link
Member

phunkyfish commented Feb 20, 2024

Did you try playing using kodiprops for either inputstream.ffmpegdirect or inputstream.adaptive?

https://github.com/xbmc/inputstream.ffmpegdirect

https://github.com/xbmc/inputstream.adaptive

The former will play unencrypted and the latter can play encrypted streams.

MPD streams have been supported for many years using these inputstreams

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants