Introducing a new way to review your PRs.

Read the announcement

xbmc / xbmc

Kodi is an award-winning free and open source home theater/media center software and entertainment hub for digital media. With its beautiful interface and powerful skinning engine, it's available for Android, BSD, Linux, macOS, iOS, tvOS and Windows.

View on GitHub

22 documents · Updated Oct 21, 2026

overview

Knowledge Base updated: 2026-10-20

Kodi knowledge base

Kodi is a cross-platform media center. Its xbmc/ tree contains the application runtime, GUI, media libraries, playback engines, add-on system, PVR, networking, filesystem abstractions, and platform adapters.

Application-wide state is coordinated through component and service managers; persistent media and add-on state is maintained by the relevant library, PVR, and add-on databases. GUI windows, player state, and platform windowing bridge those services to the active user session.

Platform support is built through CMake and platform-specific implementations. The WebAssembly target combines browser windowing, socket shims, XHR-backed files, and WebCodecs playback integration.

flowchart TD
  App[Application runtime] --> GUI[GUI shell and guilib]
  App --> Playback[Playback system]
  App --> Libraries[Media libraries]
  App --> Addons[Add-on platform]
  App --> PVR[Live TV and recording]
  App --> VFS[Virtual filesystem]
  App --> Settings[Settings and profiles]
  GUI --> Playback
  GUI --> Libraries
  Libraries --> VFS
  Playback --> VFS
  Playback --> Engines[Playback engines]
  Addons --> PVR
  Addons --> Games[Games and RetroPlayer]
  Platform[Platform and build integration] --> App
  Platform --> WASM[WebAssembly platform]
  WASM --> Playback
  WASM --> VFS

Glossary

  • guilib — Kodi's reusable GUI controls, layout, texture, and window-management framework.
  • VideoPlayer — Kodi's primary video playback engine and stream-control implementation.
  • RetroPlayer — Kodi's game playback and rendering subsystem for game client add-ons.
  • PVR — The subsystem that connects Kodi to live-TV backends, guide data, recordings, and timers.
  • special protocol — Kodi URL schemes that resolve virtual locations such as profile, home, and temporary paths.

Codebase-wide invariants

  • Platform-specific code must be selected through CMake/platform abstraction points rather than assumed from a single host environment; see cmake/scripts/** and xbmc/platform/**.
  • Media access flows through URL-based filesystem interfaces and factories, rather than callers directly depending on a transport implementation; see xbmc/…/File.h and xbmc/…/FileFactory.cpp.
  • GUI interaction is message/action driven through guilib controls and the window manager; see xbmc/guilib/**.
  • Playback integration uses player abstractions and callbacks so the application is not coupled to a single decoder or renderer; see xbmc/cores/VideoPlayer/** and xbmc/cores/RetroPlayer/**.
  • Add-on repositories and installed add-ons are mediated by add-on management rather than direct UI ownership; see xbmc/…/Repository.cpp and xbmc/addons/**.

Routing table