bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/external-video-player/custom-players/panopto.jsx

17 lines
348 B
JavaScript

const MATCH_URL = /https?\:\/\/([^\/]+\/Panopto)(\/Pages\/Viewer\.aspx\?id=)([-a-zA-Z0-9]+)/;
export class Panopto {
static canPlay = url => {
return MATCH_URL.test(url)
};
static getSocialUrl(url) {
const m = url.match(MATCH_URL);
return 'https://' + m[1] + '/Podcast/Social/' + m[3] + '.mp4';
}
}
export default Panopto;