Changed
- Staggered backup sessions on midrolls (
staggeredBackupSessions, default on) — field log (#36, v116): on a 130 s midroll where every backup type carried ads, vaft replaced all six sessions every 60 s, and every new session started with an ad of its own; none became ad-free before the break ended. It was unclear whether a session kept longer would have turned clean. Now, on a midroll (not a preroll and not within 90 s of opening the channel), the autoplay (360p) and picture-by-picture sessions are kept for the whole break; the other four types are still replaced after 60 s of ads. One break thus shows both: whether a kept session turns clean (Backup session (autoplay) became clean after …) or a new one does. A session whose ads started before the current break is still replaced. Prerolls and stream-start ads are unchanged (there a replacement after 60 s was ad-free). Fewer token requests (4 instead of 6 per minute while every type carries ads). Log:Backup session (…) kept past 60s of ads — autoplay and picture-by-picture keep their session for the whole midroll. Opt-out:twitchAdSolutions_staggeredBackupSessions=false. vaft only
Tests
- 717 checks:
shouldKeepAdLadenSession()for every case (under 60 s, Source type vs autoplay/picture-by-picture, preroll, cold-start window, ads from the previous break, opt-out, KeepBackupSessions off) and the realprocessM3U8through the field case (only the four Source types get a new session, the kept autoplay session turns clean and is committed). Each change was checked by reverting it: every revert fails the suite.