resumeCopy method

Consumer resumeCopy()

Resumes receiving media and return new Instance of same Consumer.

Implementation

Consumer resumeCopy() {
  _logger.debug('resumeCopy()');

  if (closed) {
    _logger.error('resumeCopy() | Consumer closed.');

    return this;
  }

  // paused = false;
  track.enabled = true;

  // Emit observer event.
  observer.safeEmit('resume');

  return copyWith(paused: false);
}