VeLivePlayerVideoFrame.fromMap constructor

VeLivePlayerVideoFrame.fromMap(
  1. Map map
)

Implementation

factory VeLivePlayerVideoFrame.fromMap(Map<dynamic, dynamic> map) {
  VeLivePlayerVideoBufferType? bufferType =
      (map['bufferType'] as int).videoBufferType;
  VeLivePlayerPixelFormat? pixelFormat =
      (map['pixelFormat'] as int).pixelFormat;
  int? width = map['width'];
  int? height = map['height'];
  int? pts = map['pts'];

  return VeLivePlayerVideoFrame(
    bufferType: bufferType,
    pixelFormat: pixelFormat,
    width: width,
    height: height,
    pts: pts,
  );
}