|
@@ -1,3 +1,5 @@
|
|
|
+import 'dart:convert';
|
|
|
+
|
|
|
import 'package:fis_live/controller/adapters/single/adapter_web.dart';
|
|
|
import 'package:fis_live/controller/controller.dart';
|
|
|
import 'package:fis_live/controller/exception.dart';
|
|
@@ -108,9 +110,10 @@ class _SingleChannelViewState extends State<SingleChannelView> {
|
|
|
}
|
|
|
|
|
|
dynamic _onError(dynamic args) {
|
|
|
+ final error = jsonDecode(args as String);
|
|
|
controller.errorOccurred.emit(
|
|
|
this,
|
|
|
- FLivePlayerException(args['code'], args['msg']),
|
|
|
+ FLivePlayerException(error['code'], error['msg']),
|
|
|
);
|
|
|
}
|
|
|
}
|