Pocket-Plays-for-Twitch icon indicating copy to clipboard operation
Pocket-Plays-for-Twitch copied to clipboard

No longer blocking ad's

Open sh0wst0pper opened this issue 4 years ago • 3 comments

Hi - thanks for this app, and i hope you are still developing it! For a few days now, when you load a stream you get a 'Commercial Break' at the start and then (for me at least) the video freezes, but the audio is OK. Any chance you can update the app please?

sh0wst0pper avatar Sep 24 '20 14:09 sh0wst0pper

Same here, i have Turbo and sometimes im a sub on a channel, same behaviour. Please explain this.

Ismaw34 avatar Oct 31 '20 16:10 Ismaw34

I think I messaged OP on Reddit. But basicly Twitch is injecting stream directly into the HLS stream, so filtering out the ads is very difficult. It should be possible, as the stream segments are marked, but I don't know enough about HLS streaming to actually remove/skip these segments programmatically. If you feel like you can do this, please make a fork and create a pull request. That is the power of open source.

SebastianRask avatar Nov 01 '20 12:11 SebastianRask

idk if this can help

twitch.tv#%#(function(){if("function"==typeof fetch){var e=window.fetch;window.fetch=(a,f,...c)=>{if("string"==typeof a)if(a.includes("/access_token"))a=a.replace("player_type=site","player_type=embed");else if(a.includes("/gql")&&f&&"string"==typeof f.body&&f.body.includes("PlaybackAccessToken")){var b=JSON.parse(f.body);(null===b||void 0===b?void 0:b.variables)&&(b.variables.playerType="embed",f.body=JSON.stringify(b))}return e(a,f,...c)}}})();

Disqu3-mirOir-qt avatar Nov 02 '20 02:11 Disqu3-mirOir-qt