EncodedVideoChunkInit constructor

EncodedVideoChunkInit({
  1. required EncodedVideoChunkType type,
  2. required int timestamp,
  3. int? duration,
  4. dynamic data,
})

Implementation

factory EncodedVideoChunkInit(
        {required EncodedVideoChunkType type,
        required int timestamp,
        int? duration,
        dynamic data}) =>
    EncodedVideoChunkInit._(
        type: type.value,
        timestamp: timestamp,
        duration: duration ?? undefined,
        data: data ?? undefined);