Moving link previews for my sites with og:video
When you share a link to one of my sites, the preview plays a short video. This page shows how the og:video tag does this.
TIL about the og:video Open Graph tag. With it, a link preview can play a short video. I added it to my sites. Now, when I share a link to one of my sites, the preview shows a short video with no sound.
Live demo
This is a mockup of a Messages chat. Scroll the chat to see all the cards. Each card plays the real video from that site.
The resume card uses these tags on resume.rr2.dev:
To test a preview, send a URL such as https://rr2.dev/?v=1 in a chat. The ?v=1 part stops the app from using an old preview.
Apps that play the video
- Play the video: Messages, Discord, Telegram and Slack. Messages starts the video without sound and repeats it.
- Show only the image: X, LinkedIn, Facebook and WhatsApp.
Each site has an og:video tag for the chat apps. Each site also has an og:image tag for all other apps.
How I made the videos
- Phones and Reading Room: I recorded the real 3D sites, one frame at a time.
- Resume and notes: I cut short parts from their launch videos.
- rr2.dev: I made a new animation of my avatar.
All videos are 1280×720 and have no sound. The sizes are from 132 KB (rr2.dev) to 3.3 MB (Reading Room).