Update engine to include new version of Mojo (#4668)

This required switching from the Future-based bindings to the callback-based
bindings.
This commit is contained in:
Adam Barth
2016-06-21 15:53:47 -07:00
committed by GitHub
parent f307735edc
commit a8f6f44a55
14 changed files with 154 additions and 123 deletions

View File

@@ -42,7 +42,7 @@ class PianoKey {
Future<Null> load(mojom.MediaServiceProxy mediaService) async {
try {
mediaService.createPlayer(player);
await player.prepare(await http.readDataPipe(soundUrl));
player.prepare(await http.readDataPipe(soundUrl), (bool ignored) { });
} catch (e) {
print("Error: failed to load sound file $soundUrl");
player.close();