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

Vaft and video-swap-new pausing after midrolls #187

Closed
Medivha opened this issue Oct 2, 2023 · 8 comments
Closed

Vaft and video-swap-new pausing after midrolls #187

Medivha opened this issue Oct 2, 2023 · 8 comments

Comments

@Medivha
Copy link

Medivha commented Oct 2, 2023

Vaft and Video-Swap-new userscript on tampermonkey with firefox 117.0.1 (addons:frankerfacez + ublock origin)
works fine on the first midroll, but on the second it gets stuck on a loading screen. And you have to wait till ads are gone and it automatic refreshes or manually press pause->play and you see the blocking ads on top and refreshes automatic after wards but next midroll it gets stuck again.
this is buggy for a long time now i i'm just sick of ttv lol pro(because doesn't work 70% of time) and same for other proxy solutions, so i got back to this.
just a automatic pause play would be nice?! or find another fix ;)

@pixeltris
Copy link
Owner

I watch Twitch very casually and rarely see midrolls so I can't really look into this. But you could try to play around the code that triggers when an ad finishes:

console.log('No more ads on main stream. Triggering player reload to go back to main stream...');
streamInfo.UseBackupStream = false;
postMessage({key:'UboHideAdBanner'});
postMessage({key:'UboReloadPlayer'});

Which results in this being called:

function reloadTwitchPlayer(isSeek, isPausePlay) {

I think vaft does the same but it already does a pause/resume rather than a player reload:

postMessage({
key: 'PauseResumePlayer'
});

@pixeltris pixeltris changed the title Vaft and video-swap-new bug Vaft and video-swap-new pausing after midrolls Oct 2, 2023
@pixeltris
Copy link
Owner

Also probably a duplicate of #175

@Medivha
Copy link
Author

Medivha commented Oct 2, 2023

im testing right now without FrankerFaceZ and got first ad so still waiting for second. but it interesting that without FFZ it runs on low res while the ad runs but with FFZ it runs on source res when the ad runs

@Medivha
Copy link
Author

Medivha commented Oct 2, 2023

finally second ad and it is working so it is something with FFZ.

this was tested with swap new

edit: so changing from autoplay to embed works with the resolution. now i have to find out how to make it work with FFZ. but later no time right now

@Medivha
Copy link
Author

Medivha commented Oct 14, 2023

1-2 Days later of my previous post, a lot of People noticed they don't got ads any more. Not related to the script including me so I stopped looking for a solution for now until it breaks again for me(hard to test without getting ads ;) and also i have no clue what i'm doing).
germany, firefox, tampermonkey, ublock origin, video swap new script(not VAFT). for my setup. but it depends on location and whatever random setup you have.
If you use chrome just don't. You will have it 10 times harder to fight against ads.

good luck finding a solution for you

@Medivha
Copy link
Author

Medivha commented Oct 17, 2023

Germany is normally super AD heavy. idk what twitch is doing

why would a German browser extension from a german guy living in germany phone "home" to russia????
and i dont even see anything about that in the Privacy policy

@EchoDev
Copy link

EchoDev commented Nov 5, 2023

Potential fix in #199

If someone wants to test it to confirm, this fixed the issue on my end.

@pixeltris
Copy link
Owner

Consolidating all freezing / pausing / playback issues for vaft into #164

video-swap-new generally shouldn't suffer from the same playback issues but if you're having playback issues see #119

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

3 participants