add method
Implementation
void add(Media source) {
final sourceMediaTypeCStr = source.mediaType.toString().toNativeUtf8();
final sourceResourceCStr = source.resource.toString().toNativeUtf8();
PlayerFFI.add(
this.id,
sourceMediaTypeCStr,
sourceResourceCStr,
);
calloc.free(sourceMediaTypeCStr);
calloc.free(sourceResourceCStr);
}