Skip to content

Commit 1f38499

Browse files
committed
Invoke 360 Video viewer based on metadata
MP4's don't really have embedded metadata we need, so, for now, it's invoked using a gpano field that is manually entered.
1 parent 80cd6ee commit 1f38499

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

system/application/views/widgets/mediaelement/jquery.mediaelement.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2998,13 +2998,13 @@ function YouTubeGetID(url){
29982998

29992999
var metadataFunc = function() {
30003000

3001-
// Standard practice is that 360 video must be exactly 2:1
3002-
/*if (2 == me.video[0].videoWidth / me.video[0].videoHeight && 'annotation_editor' != $('link#view').attr('href')) { // Test for 360 video
3001+
// Until there's a way to find out from the MP4 if it's an equirectangular video...
3002+
if ('undefined' != typeof(me.model.node.current.properties["http://ns.google.com/photos/1.0/panorama/stitchingsoftware"])) {
30033003
me.parentView.mediaContainer.empty();
30043004
me.parentView.mediaObjectView = new $.V360ObjectView(model, parentView);
30053005
me.parentView.mediaObjectView.createObject();
30063006
return;
3007-
}*/
3007+
}
30083008

30093009
me.parentView.intrinsicDim.x = me.video[0].videoWidth;
30103010
me.parentView.intrinsicDim.y = me.video[0].videoHeight;

0 commit comments

Comments
 (0)