Skip to content
pubscout

smtc_windows

1.1.0, released a year ago by krtirtho.dev

Windows SystemMediaTransportControls implementation for Flutter

WASM-ready
$ flutter pub add smtc_windows
Source repository

What it does

Provides access to the Windows OS Media Control applet, allowing your Flutter app to display and control media playback state, metadata, and timeline information natively on Windows. It listens to media button press events from the OS and updates the native transport controls.

AI-written summary of version 1.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are building a Flutter desktop application for Windows that plays audio or video.
  • You need to integrate with the Windows OS media player overlay and media keys.

Skip it when

  • Your app does not target the Windows platform.
  • You do not require native OS media control integration.

Strengths

  • Bridges Flutter with Windows SystemMediaTransportControls natively.
  • Supports streams for handling hardware and OS media button presses like play, pause, next, and previous.
  • Allows updating metadata, timeline, and player status.

Weaknesses

  • Requires rustup to be installed due to flutter_rust_bridge usage.
  • Limited to the Windows platform.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
5

Make sure rustup is installed on your system. Initialize SMTCWindows using SMTCWindows.initialize() inside main().

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await SMTCWindows.initialize();
  runApp(const MyApp());
}

Alternatives

Packages that do the same job and could replace smtc_windows.

Works with

Packages commonly used together with smtc_windows: ones it builds on, ones built on it, and its own family.