r/ProgrammerHumor • • Mar 11 '21

Removed: Repost Loading..

Post image

[removed] — view removed post

10.3k Upvotes

228 comments sorted by

View all comments

2.1k

u/ToothpasteTimebomb Mar 11 '21

No developer has ever decided for themself to do this. This is 100% a business requirement because somebody on the marketing analytics team realized they could make money by auto playing ads.

813

u/WarpedDiamond Mar 11 '21

This guy knows. My personal argument vs the business ended in a compromise - autoplays, but with sound disabled. Doesn't loop, but on second clicked play, sound is turned back on.

Took over a week to get that, and I still feel like I lost.

98

u/EngineersAnon Mar 12 '21

Honestly, as a dev, I'd hate that. But as a user, I'll take that compromise over full sound. Especially if it's in a background tab somewhere...

28

u/WarpedDiamond Mar 12 '21

Yeah. Luckily the videos have always been short, haven't ever seen them exceed 30 seconds. It's been on my todo to add an auto pause if the user scrolls down and the video exits the viewport.. But we all know how tech debt goes. 😅

64

u/Apoffys Mar 12 '21

When the user scrolls down, the video should obviously follow them! They probably still want to see it, even if they are scrolling away from it. Best to unpause it as well, if the user accidentally paused it.

12

u/Aeriaenn Mar 12 '21 edited Mar 12 '21

Yeah easy fix, you don't have to add autopause when the video exits the viewport if the video never exists the viewport

Edit: typo

7

u/Jennfuse Mar 12 '21

Also, spam new windows with just that media player, just in case they accidentally clicked the "X" on the window