ros.grant.common 2.0.1249 → 2.0.1254
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6874,9 +6874,11 @@ var VideoDialog = /** @class */ (function () {
|
|
|
6874
6874
|
});
|
|
6875
6875
|
};
|
|
6876
6876
|
VideoDialog.prototype.createVideoNode = function (url) {
|
|
6877
|
-
// video url patterns(youtube, instagram, vimeo, dailymotion, youku, mp4, ogg, webm)
|
|
6877
|
+
// video url patterns(youtube, rutube, instagram, vimeo, dailymotion, youku, mp4, ogg, webm)
|
|
6878
6878
|
var ytRegExp = /^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/;
|
|
6879
6879
|
var ytMatch = url.match(ytRegExp);
|
|
6880
|
+
var rytRegExp = /^(?:https?:\/\/)?(?:www\.)?(rutube\.ru\/(?:video|play\/embed))\/((\w|-)*)(?:\/)?$/;
|
|
6881
|
+
var rytMatch = url.match(rytRegExp);
|
|
6880
6882
|
var igRegExp = /(?:www\.|\/\/)instagram\.com\/p\/(.[a-zA-Z0-9_-]*)/;
|
|
6881
6883
|
var igMatch = url.match(igRegExp);
|
|
6882
6884
|
var vRegExp = /\/\/vine\.co\/v\/([a-zA-Z0-9]+)/;
|
|
@@ -6898,6 +6900,7 @@ var VideoDialog = /** @class */ (function () {
|
|
|
6898
6900
|
var webmRegExp = /^.+.(webm)$/;
|
|
6899
6901
|
var webmMatch = url.match(webmRegExp);
|
|
6900
6902
|
var $video;
|
|
6903
|
+
|
|
6901
6904
|
if (ytMatch && ytMatch[1].length === 11) {
|
|
6902
6905
|
var youtubeId = ytMatch[1];
|
|
6903
6906
|
$video = $$1('<iframe>')
|
|
@@ -6905,6 +6908,13 @@ var VideoDialog = /** @class */ (function () {
|
|
|
6905
6908
|
.attr('src', '//www.youtube.com/embed/' + youtubeId)
|
|
6906
6909
|
.attr('width', '640').attr('height', '360');
|
|
6907
6910
|
}
|
|
6911
|
+
else if (rytMatch && rytMatch[2].length) {
|
|
6912
|
+
var rutubeId = rytMatch[2];
|
|
6913
|
+
$video = $$1('<iframe>')
|
|
6914
|
+
.attr('frameborder', 0)
|
|
6915
|
+
.attr('src', 'https://rutube.ru/play/embed/' + rutubeId)
|
|
6916
|
+
.attr('width', '640').attr('height', '360');
|
|
6917
|
+
}
|
|
6908
6918
|
else if (igMatch && igMatch[0].length) {
|
|
6909
6919
|
$video = $$1('<iframe>')
|
|
6910
6920
|
.attr('frameborder', 0)
|
package/package.json
CHANGED