putMediaSource method
Put an asset id
of value source
.
Implementation
String? putMediaSource(String id, MediaSource source, [MimeType? mimeType]) {
if (id.isEmpty) return null;
var objURL = Url.createObjectUrlFromSource(source);
_assets[id] = _AssetObjectURL(objURL, mimeType);
return objURL;
}