Repository navigation
Releases
media_kit_360 1.2.0
- Headset view, experimental, not yet tried in a headset by the project. In a Windows build with the
MEDIA_KIT_360_XRoption of CMake, media_kit_video shows a player in a PC VR headset through OpenXR (SteamVR, Meta Horizon Link, Virtual Desktop, Pico Connect): a 360 or 180 video around the head, a flat 2D or 3D film on a screen, a test pattern, or a dark room with a status strip the app draws.lib/xr.dart(XrHeadset): the active runtime read from the registry without loading anything, start, the next video or mode with no new session, the strip, recentering upright or lying down, a polled state with the controllers' events (play or pause, seek, recenter, lying down, leave) and stop codes. Controllers through OpenXR's action system with bindings for the simple, Touch, Index, Vive, Microsoft, HP and Pico controllers. Replaces the probe'sXrProbe. Without the option nothing of it is built and every call answersnotInBuild. - Kind 4, the flat pass, in every build.
ProjectionKind.flatandPluginProjection.flatdraw a flat film letterboxed (a stereo film's left eye at its seen shape), so a flat player can keep its normal picture while its frame goes to the headset.ProjectionKindnow carries the plugin's numbers (code). - Review of version 1, before any headset session. An instance lost while the session is not running (IDLE) is seen by xrPollEvent and ends the view with
runtimeLost, where the view stayed running before. The view holds the players' EGL display (ANGLESurfaceManager::RetainDisplayandReleaseDisplay), so the last player going during a view no longer terminates it under the view.XrStop's thread no longer holds the plugin: a window closed while the runtime takes its time drops the answer, and the plugin's destructor ends the view before any of its members goes. - Tests: the headset view's portable C++ tests with ASan and UBSan in the analyze job and with MSVC in the
windows-xrjob, the Windows tests on the runner (registry, loader, action calls, WARP refused, strip bytes), the flat pass in ANGLE, the Dart calls.
Apps that depend on the packages by tag move to ref: v1.2.0. The libmpv builds are those of 1.1.1 (libmpv-windows-20261113-2). Without the CMake option MEDIA_KIT_360_XR nothing of the headset view is built and every call answers notInBuild; with it, the Windows build downloads the OpenXR loader 1.1.65 of KhronosGroup/OpenXR-SDK (Apache-2.0 OR MIT), checked by its SHA-256, and bundles openxr_loader.dll with its notice.
media_kit_360 1.1.1
- libmpv with Dolby TrueHD and PGS subtitles. media_kit_libs_windows_video now downloads libmpv from the release
libmpv-windows-20261113-2of immuch360/libmpv-builds (recipe 1.2.0), pinned by the SHA-256 of itsSHA256SUMS.txt(x64 and arm64). Its FFmpeg has the Dolby TrueHD and MLP decoders with the MLP parser, and the PGS subtitle decoder: the earlier build opened a TrueHD track, the default audio of most UHD Blu-ray remuxes, and played it silent ("ad: Failed to initialize a decoder for codec 'truehd'"), and showed no PGS subtitles. All three are LGPL parts of FFmpeg; the DLL stays LGPL-3.0-or-later. Same mpv (0b7ed670), FFmpeg (5b9a3ad7) and library commits aslibmpv-windows-20261110-1.
media_kit_360 1.1.0
- Stabilisation of raw 360° videos. Renderer C turns each frame of a raw fisheye or GoPro EAC video by a rotation of its own, from a table the app gives once (
PluginRenderer.setStabilization,PluginStabilization): one presentation time and one unit quaternion per frame, the convention of Immuch360's Android player (the point of the stitched sphere at direction d is shown at K d). The pass reads the stitch at K^T v;uStabilizeat 0 keeps every caller that knows nothing of it as before. The switch flips without sending the table again, and a paused frame is drawn again at once. - The time of the frame drawn. libmpv's render API gives none, so the plugin reads mpv's
time-poswhen mpv hands a frame over and corrects it by one frame when the frame's target time (MPV_RENDER_PARAM_NEXT_FRAME_INFO) says the draw came after the next frame's display time. Measured with frames carrying their index: 3.35% of the draws one frame off withtime-posalone on Windows, 0.15% with the rule, all of them among the first five draws of a file. The target time is in nanoseconds in the libmpv of this repository (mpv0b7ed670), in microseconds in older ones: both are read. - Statistics:
ProjectionStats.stabilizedFrames,frameTimeandstabilizing. - Tests: the table lookup, the sign convention (four checks of the Android player ported, fifty random rotations, a mutation) and the frame clock in C++ (
windows/test/stabilization_test.cc, run by the analyze job); the pass reading K^T v and never K v in ANGLE (plugin_shaders_windows_test.dart, Windows job).
media_kit_360 1.0.1
- libmpv from libmpv-builds. media_kit_libs_windows_video now downloads libmpv from the release
libmpv-windows-20261110-1of immuch360/libmpv-builds, where the recipe moved, pinned by the SHA-256 of itsSHA256SUMS.txt(x64 and arm64). It is the same mpv (0b7ed670) and FFmpeg (5b9a3ad7) as the releaselibmpv-windows-20261009-3of freeKC/Immuch360 that 1.0.0 pinned, rebuilt from the same pinned sources. The README and the Windows notices name the new source.
Apps that depend on the packages by tag move to ref: v1.0.1; nothing else changes for them.
media_kit_360 1.0.0
The 360° video renderer as Immuch360 Desktop build 24 shipped it on 9 November 2026, out of the Immuch360 repository with its history.
- Renderer C on Windows. media_kit_video's plugin draws the view of a 360°, VR180 or 3D video in one OpenGL ES 3.0 pass, from the frame mpv draws into an intermediate texture, into the texture the player's
VideoControlleralready gives Flutter. The view is a uniform sent at most once per Flutter frame, bilinear while it moves and Catmull-Rom once it rests; a paused video is redrawn without mpv; the swap with Flutter's copy holds the lock for 0.01 ms. - Projections. Equirectangular frames, mono or one eye of a stereo frame over under or side by side, over the whole sphere or its front half (VR180); raw dual fisheye videos stitched as they play (Mei, equidistant, Kannala-Brandt) and GoPro EAC pairs; the two streams of a raw file in one frame or in two players drawn together.
- The Dart API in
package:media_kit_video/sphere.dart:PluginRenderer(attach before the file opens,setView,setOutputSize,setProjection,setTier,setPartner,stats,detach),PluginTierwith the start tier of the GPU,RendererProbeand its verdicts. The app's own types gave way toPluginStereoLayout,PluginCoverageandPluginGpu. - Fixes carried by the packages, each described in the package's
IMMUCH360-NOTE.md: an OpenGL ES 3.0 context on Windows, a lost Direct3D device reported to Dart, a texture no longer replaced while Flutter reads it, the first texture of a video at the capped size; on Linux, GPU rendering on Flutter 3.38 and later under Wayland and X11 and libmpv opened at run time; media_kit's 2026 fixes and the Windows COM fix of media-kit/media-kit#1449. - The libmpv build
libmpv-windows-20261009-3, pinned by its SHA-256, and downloads checked by SHA-256 and tried again after a failure. - An example app for Windows and Linux, and a CI that analyses and tests the packages, builds the example on both systems, compiles the passes of renderer C with ANGLE and checks the Linux plugin's EGL context.
On Linux, 360° videos play flat for now (no renderer C there yet), and macOS is not covered by this repository yet.
To use it, see the README for the pubspec lines (git dependencies on ref: v1.0.0). The CI run of this tag keeps the example app's Windows and Linux builds as artifacts for 14 days.