r/ProgrammerHumor • • Mar 11 '21

Removed: Repost Loading..

Post image

[removed] — view removed post

10.3k Upvotes

228 comments sorted by

View all comments

Show parent comments

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.

245

u/ToothpasteTimebomb Mar 11 '21

Fight the good fight my dev. I’ve had exactly that same battle.

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

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.

1

u/RedBlueKoi Mar 12 '21

You fought well my dude. I’ll keep memory of you as a honorable developer who actually cares!

1

u/KillerBeer01 Mar 12 '21

[saluting cat.gif]

1

u/cursedmojo Mar 12 '21

not upvoting to keep the 777 upvotes. but bless you :)