setOptionsJson static method
从 JSON 文件内容直接设置画质选项。
Implementation
static Future<void> setOptionsJson(String jsonText) {
final decoded = jsonDecode(jsonText);
if (decoded is! List) {
throw ArgumentError.value(decoded, 'jsonText', '画质配置 JSON 顶层必须是数组');
}
return setOptions(decoded);
}