Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ pimcore.asset.video = Class.create(pimcore.asset.asset, {

initPreviewVideo: function () {
var frameUrl = Routing.generate('pimcore_admin_asset_getpreviewvideo', {id: this.id});
var html = '<iframe src="' + frameUrl + '" frameborder="0" id="' + this.previewFrameId + '" name="' + this.previewFrameId + '" style="width:100%;"></iframe>';
var html = '<iframe src="' + frameUrl + '" referrerpolicy="strict-origin-when-cross-origin" frameborder="0" id="' + this.previewFrameId + '" name="' + this.previewFrameId + '" style="width:100%;"></iframe>';
this.previewPanel.update(html);

Ext.get(this.previewFrameId).setStyle({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,18 +190,18 @@ pimcore.object.tags.video = Class.create(pimcore.object.tags.abstract, {

if (this.data.type == "asset" && pimcore.settings.videoconverter) {
var path = Routing.generate('pimcore_admin_asset_getvideothumbnail', {
path: this.data.data,
width: width,
height: height,
frame: true
});
path: this.data.data,
width: width,
height: height,
frame: true
});

content = '<img src="'+path+'" />';
} else if (this.data.type == "youtube") {
if (this.data.data.indexOf('PL') === 0) {
content = '<iframe width="' + width + '" height="' + height + '" src="https://www.youtube-nocookie.com/embed/videoseries?list=' + this.data.data + '" frameborder="0" allowfullscreen></iframe>';
content = '<iframe width="' + width + '" referrerpolicy="strict-origin-when-cross-origin" height="' + height + '" src="https://www.youtube-nocookie.com/embed/videoseries?list=' + this.data.data + '" frameborder="0" allowfullscreen></iframe>';
} else {
content = '<iframe width="' + width + '" height="' + height + '" src="https://www.youtube-nocookie.com/embed/' + this.data.data + '" frameborder="0" allowfullscreen></iframe>';
content = '<iframe width="' + width + '" referrerpolicy="strict-origin-when-cross-origin" height="' + height + '" src="https://www.youtube-nocookie.com/embed/' + this.data.data + '" frameborder="0" allowfullscreen></iframe>';
}
} else if (this.data.type == "vimeo") {
content = '<iframe src="https://player.vimeo.com/video/' + this.data.data + '?title=0&amp;byline=0&amp;portrait=0" width="' + width + '" height="' + height + '" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
Expand Down