Z
Привет
, не подскажете. почему может не отлавливаться исключение?Future<void> init(PlayerSource source) async {
try {
fireStatusUpdated();
final oldController = _videoPlayerController;
_videoPlayerController = _makeController(source);
WidgetsBinding.instance.addPostFrameCallback((_) async {
await oldController?.dispose();
});
await _videoPlayerController.initialize();
fireStatusLoaded();
await _videoPlayerController.play();
} on PlatformException catch (e) {
fireStatusError(e);
}
}