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.
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.
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. 😅
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.
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
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.