screenshot method
Captures the current video frame as an encoded image.
Returns the encoded image bytes, or null if a screenshot could not be
captured.
截取当前视频帧并编码为图片。
返回编码后的图片字节;若无法截图则返回 null。
Implementation
@override
Future<Uint8List?> screenshot() async {
calls.add('screenshot');
return null;
}