Skip to content

Commit

Permalink
fix: windows new smtc plugin (#1020)
Browse files Browse the repository at this point in the history
  • Loading branch information
Feichtmeier authored Nov 16, 2024
1 parent b398cfd commit 6d78c2b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 3 additions & 2 deletions lib/player/player_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -553,13 +553,14 @@ class PlayerService {

Future<void> _initMediaControl() async {
if (Platform.isWindows) {
_initSmtc();
await _initSmtc();
} else if (Platform.isLinux || Platform.isAndroid || Platform.isMacOS) {
await _initAudioService();
}
}

void _initSmtc() {
Future<void> _initSmtc() async {
await SMTCWindows.initialize();
_smtc = SMTCWindows(
enabled: true,
config: const SMTCConfig(
Expand Down
1 change: 0 additions & 1 deletion needs_translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,6 @@
],

"it": [
"saveAndAuthorize",
"exposeToLastfmTitle",
"exposeToLastfmSubTitle",
"lastfmApiKey",
Expand Down
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -459,10 +459,10 @@ packages:
dependency: transitive
description:
name: file_selector_android
sha256: ec439df07c4999faad319ce8ad9e971795c2f1d7132ad5a793b9370a863c6128
sha256: "934850f9702b0f9031bc331a306e7bebc62f894a6e5ca6c0681c7af17e7afb50"
url: "https://pub.dev"
source: hosted
version: "0.5.1+10"
version: "0.5.1+11"
file_selector_ios:
dependency: transitive
description:
Expand Down

0 comments on commit 6d78c2b

Please sign in to comment.