streamlink/streamlink-twitch-gui

Could there be an option to ALLOW advertisements? Long total silences during watching not nice

vrement opened this issue · 2 comments

Checklist

Description

I don't know of others but when the adverts kick in watching Twitch streams things halt for often long while. Total silence and waiting. Could there be a simple option in the settings to just allow them ads? They never bothered me. Or what is the reason for the stream to stop or be silenced during ad breaks?

Commercial
The annoyance in question is this screen during watching, which is there silent for often very long time.

Read this
https://streamlink.github.io/cli/plugins/twitch.html

Streamlink always acquires streaming access tokens while pretending to be Twitch's embedded web player. This is where they don't serve ads and instead show the "purple screen", because they can't or don't want to show ads on 3rd party websites.

If you want to see ads for whatever reason, then disable ad filtering (--twitch-disable-ads) in the Twitch GUI's streaming settings menu (you already have disabled this, otherwise you wouldn't see the "purple screen"), and then set the following Streamlink parameter, which can be done in the Twitch GUI's streaming settings menu after enabling advanced settings in the main settings menu, or set it in your Streamlink config file (see the Streamlink docs):
--twitch-access-token-param=playerType=web

Seeing ads or the purple screen however always results in a stream discontinuity, which needs to be avoided, or demuxing/decoding issues in your player can occur. This is also the case when filtering, but here it's the continuation of the same bitstream, albeit with a gap, but players usually can recover from this just fine.