EncodedAudioChunkInit constructor

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

Implementation

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