4 ms·
I always wondered why google doesn't just interleave the ads straight into the video stream until the user has finished watching them? Plenty of streaming servi
by seanalltogether 3y ago
I always wondered why google doesn't just interleave the ads straight into the video stream until the user has finished watching them? Plenty of streaming services do this now and it's not like youtube is still serving up a big .mp4 file to download these days, it's all just small segments.
- zgluck 3y agoThey wanted to allow adblocking for the desktop browser crowd. Until now.
- bobdvb 3y agoIt's hard from a caching perspective. Playing the segments you either need to explicitly define all the files you download in the manifest, which is inefficient. Or you need to have a segment template which defines a formula for the segment names that increments with time. With that the player can generate the video segment that needs to be fetched for playback. When you create an ad break you'd have to have some backend which split the traffic routing so that media segments came from a different source. And that source would be unique for every user. This is hella complex for the CDN edge infrastructure at scale because you need systems which understand the state of the individual users session. It's much easier for them to manipulate the playback manifest so that it stitches different periods for ads and content. It's not impossible, just a PITA.