toEmbedUrl static method
Normalizes the player URL (https, trailing slash on path).
Implementation
static String toEmbedUrl(String url) {
final uri = Uri.parse(_normalizeUrl(url));
if (!uri.path.endsWith('/')) {
return uri.replace(path: '${uri.path}/').toString();
}
return uri.toString();
}