video

command
v0.1.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Video plays video in native UI, as a launcher's store page does: a short GIF loops behind the window's content, and a trailer with sound plays over it, with controls to pause it, seek and mute it.

go run ./backend/examples/video

The GIF decodes in Go (ui.NewGIFDecoder), on every system: its frames decode on a goroutine a few ahead, and each reaches the screen as it comes due, so the window draws one frame for each of the clip's and none between. It stands still while the window is out of sight, and shows its first frame while the desktop asks for less motion.

The trailer, an MP4 of H.264 and AAC embedded in the app, plays with the system's media framework (package ui/video): AVFoundation on macOS, Media Foundation on Windows, GStreamer on Linux and the video element in browsers, which decode it in hardware where they can and play its sound in sync. Its pictures reach the window's renderer where the decoder left them, on the GPU.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL