libwinmedia library

libwinmedia.dart

A Dart library for media playback, tag parsing & controlling system media transport controls, MPRIS on Windows 10 & Linux.

Minimal example

LWM.initialize();

Player player = Player(id: 0);
player.open([
  Media(uri: 'https://www.example.com/music.mp3'),
  Media(uri: 'file://C:/documents/video.mp4'),
]);
player.play();
player.nativeControls.status = NativeControlsStatus.paused;
player.nativeControls.update(
  albumArtist: 'Porter Robinson',
  album: 'Divinity',
);

The library provides performant & completely synchronous API for media playback.

Classes

LWM
libwinmedia.dart
Media
Media
Player
Player
PlayerError
Class representing a Player error.
PlayerNativeControls
Player Native Controls

Enums

NativeControlsStatus
Current playback status of native control buttons.
PlayerErrorCode
Various Player error codes.

Properties

medias Map<int, Media>
Various Media instances created. Stored here for persistence of Media.extras.
getter/setter pair
players Map<int, Player>
Various Player instances created. Stored here for sending events to the StreamControllers inside the Player class.
getter/setter pair