Hacker News new | ask | show | jobs
by mmcclure 1848 days ago
Fun example of at least making an attempt...the Demuxed website for 2019[1] had a big, animated hero image on top of a deep purple background. Obviously we went with a video first, which looked great, but then...we ran into this problem and different browsers/hardware all would show slight-but-obvious differences between the video background and the hero background.

Ultimately we decided to just use a gif, but the other, more fun solution we experimented with was to use canvas to render the video, grab the hex value from one of the purple pixels, and set the background to that[2].

[1] https://2019.demuxed.com

[2] https://codesandbox.io/s/video-canvas-playground-gp0hk?from-...

1 comments

> use canvas to render the video, grab the hex value from one of the purple pixels

I suppose that makes yet another fingerprinting method.