setSwrOption method

void setSwrOption (
  1. String key,
  2. dynamic value
)

set ffmpeg swresample option value must be int or String

Implementation

void setSwrOption(String key, dynamic value) {
  if (value is String || value is int) {
    _swrOption[key] = value;
    FijkLog.v("FijkOption.setSwrOption key:$key, value :$value");
  } else {
    FijkLog.e("FijkOption.setSwrOption with invalid value:$value");
    throw ArgumentError.value(value, "value", "Must be int or String");
  }
}