toPlayerEmbedUrl static method
Omny episode pages must use the /embed player URL inside an iframe.
Implementation
static String toPlayerEmbedUrl(String url) {
final uri = Uri.parse(_normalizeUrl(url));
if (uri.path.endsWith('/embed')) {
return uri.toString();
}
final path = uri.path.endsWith('/') ? uri.path : '${uri.path}/';
return uri.replace(path: '${path}embed').toString();
}