H5P.getLibraryPath = function (library) {
  return H5PIntegration.url + '/' + library.split('-')[0];
};

H5P.getPath = function (path, contentId) {
  var hasProtocol = function (path) {
    return path.match(/^[a-z0-9]+:\/\//i);
  };

  if (hasProtocol(path)) {
    return path;
  }

  var prefix;
  if (contentId !== undefined) {
    prefix = H5PIntegration.url + '/content/';
  }
  else if (window.H5PEditor !== undefined) {
    prefix = H5PEditor.filesPath;
  }
  else {
    return;
  }

  // if (!hasProtocol(prefix)) {
  //   // Use absolute urls
  //   prefix = window.location.protocol + "//" + window.location.host + prefix;
  // }

  return prefix + '/' + path;
};

H5P.getLibraryPath = function (library) {
  return H5PIntegration.url + '/' + library.split('-')[0];
};

H5P.getPath = function (path, contentId) {
  var hasProtocol = function (path) {
    return path.match(/^[a-z0-9]+:\/\//i);
  };

  if (hasProtocol(path)) {
    return path;
  }

  var prefix;
  if (contentId !== undefined) {
    prefix = H5PIntegration.url + '/content';
  }
  else if (window.H5PEditor !== undefined) {
    prefix = H5PEditor.filesPath;
  }
  else {
    return;
  }

  // if (!hasProtocol(prefix)) {
  //   // Use absolute urls
  //   prefix = window.location.protocol + "//" + window.location.host + prefix;
  // }

  return prefix + '/' + path;
};

Remove double slash from path
Remove double slash from path

The slash after content caused a double slash in the resulting path, standalone could not be loaded in a simple Android WebView app. See detailed error description here: https://h5p.org/node/104774

Thanks for providing!