mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-19 10:39:59 +00:00
Bug 4382: Setting "crossorigin" attribute" for 360° videos only because
this breaks normal MP4 files
This commit is contained in:
1 parent
90a737e67d
commit
6255b46f7a
1 file changed
+3
-1
+3
-1
@@ -48,7 +48,6 @@ public class VideoJSPlayer extends Widget implements RequiresResize {
|
||||
this.autoplay = autoplay;
|
||||
setElement(uiBinder.createAndBindUi(this));
|
||||
videoElement.setId(elementId = "videojs_" + Document.get().createUniqueId());
|
||||
videoElement.setAttribute("crossorigin", "anonymous");
|
||||
if (fullHeightWidth) {
|
||||
videoElement.addClassName("video-js-fullscreen");
|
||||
}
|
||||
@@ -65,6 +64,9 @@ public class VideoJSPlayer extends Widget implements RequiresResize {
|
||||
|
||||
public void setVideo(MimeType mimeType, String source) {
|
||||
this.panorama = mimeType.isPanorama();
|
||||
if (this.panorama) {
|
||||
videoElement.setAttribute("crossorigin", "anonymous");
|
||||
}
|
||||
if (isAttached()) {
|
||||
_onLoad(autoplay, panorama, StringMessages.INSTANCE.threeSixtyVideoHint());
|
||||
resizeChecker.scheduleRepeating(RESIZE_CHECK);
|
||||
|
||||
Reference in new issue
Block a user