VideoFrameInit constructor

VideoFrameInit({
  1. int? duration,
  2. int? timestamp,
  3. AlphaOption? alpha,
  4. DOMRectInit? visibleRect,
  5. int? displayWidth,
  6. int? displayHeight,
})

Implementation

factory VideoFrameInit(
        {int? duration,
        int? timestamp,
        AlphaOption? alpha,
        DOMRectInit? visibleRect,
        int? displayWidth,
        int? displayHeight}) =>
    VideoFrameInit._(
        duration: duration ?? undefined,
        timestamp: timestamp ?? undefined,
        alpha: alpha?.value ?? AlphaOption.keep.value,
        visibleRect: visibleRect ?? undefined,
        displayWidth: displayWidth ?? undefined,
        displayHeight: displayHeight ?? undefined);