Commit 9bf16fbd authored by Alex Fandrianto's avatar Alex Fandrianto

Also update piano.dart

parent ddb060d6
......@@ -64,7 +64,7 @@ class PianoApp extends StatelessComponent {
Future loadSounds() async {
MediaServiceProxy mediaService = new MediaServiceProxy.unbound();
try {
shell.connectToService(null, mediaService);
shell.connectToService("mojo:media_service", mediaService);
List<Future<MediaPlayerPrepareResponseParams>> pending = <Future<MediaPlayerPrepareResponseParams>>[];
for (PianoKey key in keys)
pending.add(key.load(mediaService));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment