Also update piano.dart

This commit is contained in:
Alex Fandrianto 2016-01-11 18:53:32 -08:00
parent ddb060d685
commit 9bf16fbd6a

View File

@ -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));