mastodon.ar.al is one of the many independent Mastodon servers you can use to participate in the fediverse.
This is my personal fediverse server.

Administered by:

Server stats:

1
active users

Just updated the video on my Streaming HTML article so it’s no longer using Vimeo’s video player (which has tracking) but a simple video tag.

ar.al/2024/03/08/streaming-htm

(Sorry it took a little while, it involves a bit more work – but not much more – than simply copying the embed code over.)

PS. Would anyone be interested in a little write-up of how to embed Vimeo videos without their player/tracking but still keeping the closed captions?

Aral Balkan · Streaming HTMLSorry, your browser doesn't support embedded videos. But that doesn’t mean you can’t watch it! You can download the video and watch it with your favourite video player. Building the Streaming HTML counter example. Estimated reading time: 25 minutes. Kitten has a new experimental workflow for creating web apps called Streaming HTML that I want to introduce you to today. Kitten, uniquely, enables you to build Small Web apps (peer-to-peer web apps).

@aral@mastodon.ar.al this is weird, the color gets inverted when I rotate my screen.

@scott Right, I believe I’ve fixed it. Could you try again?

Basically, I apply a filter to the body in @media (prefers-colors-scheme: dark) to implement a simple faux dark mode but also apply the filter again to videos, image tags, etc., that should not be inverted. However, when a video goes fullscreen, it’s no longer affected by the filter on the body and so you have to specifically null out the filter for video in the video:fullscreen selector (i.e., video:fullscreen { filter: none; })

Aral Balkan

@scott Yay! Thanks for prodding me about it. I’d been meaning to look into it for some time :)