It’d be a web app that consumes the source stream and reduce the quality of each segment in it to provide different qualities. As soon as Twitch enables its own quality options to the streamer, the web app would stop and redirect the user to twitch.tv.
I can see the problem with your second paragraph.