sendVideoData method
发送自定义视频数据
data
视频数据
width
视频宽度
height
视频高度
size
数据大小
pts
时间戳(单位微秒)
rotation
旋转
Implementation
Future<void> sendVideoData(Uint8List data, int width, int height, int size,
int pts, int rotation) async {
Map params = {
"data": data,
"width": width.toString(),
"height": height.toString(),
"size": size.toString(),
"pts": pts.toString(),
"rotation": rotation.toString(),
};
return _livePusherMethodChannel.invokeMethod(
'sendVideoData',
wrapArgs(arg: params),
);
}