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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user