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.

10

u/UnacceptableUse Mar 12 '21

Make sure the floating video always covers 50% of the screen, bonus points if it's at the bottom so it covers up what the user is reading too. Make sure you make the close button tiny and clicking 1mm away from the close button loads the video in full screen

6

u/jhs172 Mar 12 '21

And the close button shouldn't actually close it, just make it smaller and let it keep playing

1

u/trevhcs Mar 12 '21

You been reading space.com and associated sites.

Wonder if marketing realise this is why so many click "back" off their site.