Since a few (?) days, my embedded Streams do not get past the “Preparing Stream” pre-roll. it never showed any ads (only this screen), but now it gets stuck like this. The Chat is working.
This is the link: LeagueStreams
It does work on other streams, where there seem to be no pre-roll:
(only examples if they are live).
I embed it in my Angular App
public initLivePlayer(platform: Platform, streamer: StreamerDetailsDTO, workspaceHeight: number, qualityIsSet: boolean = false) {
if (platform === Platform.TWITCH) {
// @ts-ignore
this._player = new Twitch.Embed('player', {
channel: streamer.platformIdentifier,
height: workspaceHeight,
width: '100%',
autoplay: false,
parent: this._parents
});
this._player.addEventListener(Twitch.Embed.VIDEO_PLAY, () => {
if (!qualityIsSet) {
this._player.setQuality(this._player.getQualities()[1].group, this._player.getQualities()[1].name);
qualityIsSet = true;
}
});
this._player.addEventListener(Twitch.Embed.VIDEO_READY, () => {
this._player.play();
});
this._playerSubject.next(this._player);
}
}
embedded here
<div class="flex flex-wrap scrollable-div">
<div class="w-full md:w-4/5">
<div class="w-full" id="player"></div>
</div>
</div>
And the index.html has the .js file
<!doctype html>
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8">
<title>LeagueStreams</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
...
<script src="https://embed.twitch.tv/embed/v1.js"></script>
...
</head>
<body>
<app-root></app-root>
<noscript>Please enable JavaScript to continue using this application.</noscript>
</body>
</html>
I see this on Win11 Firefox and Chrome latest, both no Adblock and on Android, same browsers.