sendVideoData method

Future<void> sendVideoData(
  1. Uint8List data,
  2. int width,
  3. int height,
  4. int size,
  5. int pts,
  6. int rotation,
)

发送自定义视频数据

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),
  );
}