setSwsOption method

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

set ffmpeg swscale option value must be int or String

Implementation

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