problem is how to handle yuv

This commit is contained in:
rustdesk 2022-01-27 13:26:17 +08:00
parent 1d7933621d
commit 4e41a8a044

View File

@ -6,8 +6,9 @@ class PlatformFFI {
static void clearRgbaFrame() {}
static Uint8List getRgba() {
return js.context.callMethod(js.context.callMethod('getRgba'));
// return Uint8List.sublistView(ref.data.asTypedList(ref.len));
var data = js.context.callMethod('getRgba');
if (data) return Uint8List.sublistView(data);
return null;
}
static Future<String> getVersion() async {