this post was submitted on 13 Jun 2024
620 points (98.4% liked)
Technology
59135 readers
2878 users here now
This is a most excellent place for technology news and articles.
Our Rules
- Follow the lemmy.world rules.
- Only tech related content.
- Be excellent to each another!
- Mod approved content bots can post up to 10 articles per day.
- Threads asking for personal tech support may be deleted.
- Politics threads may be removed.
- No memes allowed as posts, OK to post as comments.
- Only approved bots from the list below, to ask if your bot can be added please contact us.
- Check for duplicates before posting, duplicates may be removed
Approved Bots
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Ads should be properly labeled in most market, so it should be trivial to detect what segment is ad and what isn't. The real question is, what to do, and if the server refuses to serve the remainder of the video before the ads duration, what will it be replaced with.
Just catch everything in the background, play the full ad on mute, and when the ad segment is coming up in the stream you are actually watching, switch to the cached copy. Shouldn't be too hard to program.
How about replacing them with something nicer, like just showing “Take a moment to pause…” screen with audio muted/relaxing music background?
Sure, I'd take that over ads anytime.
I doubt if they will refuse to serve as the stream still need to buffer. That's the fundemental of streaming.
Or I missed something?
Streaming allow caching a bit ahead, yes. But the "a bit ahead" part does not mean you can get everything; a server could very well decide to not send more than a few seconds of buffer compared to the realtime play. So, if you're at 00:00:20 in your video and an 30 second ad is present in the video stream, the server could decide to not send anything beyond the 00:00:55 tag until 30 seconds have elapsed, for example.
It would be very annoying to code server side, and very annoying for people with spotty internet, but it's very doable.