smtc_windows
1.1.0, released a year ago by krtirtho.dev
Windows SystemMediaTransportControls implementation for Flutter
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.
- video_trimmer
Trim videos in Flutter on Android, iOS, macOS, and the web
83Compare - flutter_chrome_cast
Integrate Google Cast devices to discover, connect, and control media playback.
80Compare - flutter_media_session
Flutter plugin for OS media integration across Android, iOS, macOS, Windows, Linux, and Web
78Compare - universal_video_controls
Universal video player controls compatible with any video player backend.
68Compare
Works with
Packages commonly used together with smtc_windows: ones it builds on, ones built on it, and its own family.
- uuidsmtc_windows depends on itGenerates and parses RFC‑4122/9562 UUIDs (v1‑v8) for Dart.
- ffismtc_windows depends on itUtilities for working with Foreign Function Interface (FFI) code in Dart.
- plugin_platform_interfacesmtc_windows depends on itReusable base class for platform interfaces of Flutter federated plugins.
- flutter_rust_bridgesmtc_windows depends on itFlutter/Dart and Rust binding generator