setCodecOption method

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

set ffmpeg avcodec option value must be int or String

Implementation

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