audio_service/lib/js/media_metadata.dart
2020-09-18 19:25:00 +02:00

33 lines
672 B
Dart

@JS()
library media_metadata;
import 'package:js/js.dart';
@JS('MediaMetadata')
class MediaMetadata {
external MediaMetadata(MetadataLiteral md);
}
@JS()
@anonymous
class MetadataLiteral {
external String get title;
external String get album;
external String get artist;
external List<MetadataArtwork> get artwork;
external factory MetadataLiteral(
{String title,
String album,
String artist,
List<MetadataArtwork> artwork});
}
@JS()
@anonymous
class MetadataArtwork {
external String get src;
external String get sizes;
external String get type;
external factory MetadataArtwork({String src, String sizes, String type});
}