create static method
Implementation
static Future<int> create({required UMediaKind kind, required UMediaConfig config}) async {
final int? id = await _method.invokeMethod<int>("create", <String, Object?>{"kind": kind.name, "config": config.toMap()});
if (id == null) throw const UMediaError(code: UMediaErrorCode.unknown, message: "Player could not be created");
return id;
}