Skip to content

Commit f1f196e

Browse files
committed
HFP-3448 Add Vimeo source detection
1 parent 0ea36d2 commit f1f196e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/h5peditor-av.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,11 @@ H5PEditor.widgets.video = H5PEditor.widgets.audio = H5PEditor.AV = (function ($)
683683
name: 'Panopto',
684684
regexp: /^[^\/]+:\/\/([^\/]*panopto\.[^\/]+)\/Panopto\/.+\?id=(.+)$/i,
685685
aspectRatio: '16:9',
686+
},
687+
{
688+
name: 'Vimeo',
689+
regexp: /^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/i,
690+
aspectRatio: '16:9',
686691
}
687692
];
688693

0 commit comments

Comments
 (0)