diff --git a/bigbluebutton-html5/imports/ui/components/external-video-player/custom-players/panopto.jsx b/bigbluebutton-html5/imports/ui/components/external-video-player/custom-players/panopto.jsx
index b1305869af22da14413b0b126c7ac9077195233a..d7a886631b25c794c995bf31c125a48e9fbaf911 100644
--- a/bigbluebutton-html5/imports/ui/components/external-video-player/custom-players/panopto.jsx
+++ b/bigbluebutton-html5/imports/ui/components/external-video-player/custom-players/panopto.jsx
@@ -1,4 +1,4 @@
-const MATCH_URL = /https?\:\/\/(([a-zA-Z]+\.)?([a-zA-Z]+\.panopto\.[a-zA-Z]+\/Panopto))\/Pages\/Viewer\.aspx\?id=([-a-zA-Z0-9]+)/;
+const MATCH_URL = /https?\:\/\/([^\/]+\/Panopto)(\/Pages\/Viewer\.aspx\?id=)([-a-zA-Z0-9]+)/;
 
 export class Panopto {
 
@@ -8,7 +8,7 @@ export class Panopto {
 
   static getSocialUrl(url) {
     const m = url.match(MATCH_URL);
-    return 'https://' + m[1] + '/Podcast/Social/' + m[4] + '.mp4';
+    return 'https://' + m[1] + '/Podcast/Social/' + m[3] + '.mp4';
   }
 }