toEmbedUrl static method

String toEmbedUrl(
  1. String url
)

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();
}