File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
system/application/views/widgets/mediaelement Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -2272,15 +2272,13 @@ function YouTubeGetID(url){
2272
2272
} ) ;
2273
2273
2274
2274
$ ( this . image ) . on ( 'load' , function ( ) {
2275
- // Standard practice is that 360 images must be exactly 2:1; alternatively could look for Exif XMP “ProjectionType=equirectangular”
2276
- // Panoramas that aren't 2:1 (e.g., created on a phone) will require a more nuanced look at the metadata to determine if the 360 view should load
2277
- /*if (2 == this.width / this.height && 'annotation_editor' != $('link#view').attr('href')) { // Test for 360 image
2275
+ if ( 'undefined' != typeof ( me . model . node . current . properties [ "http://ns.google.com/photos/1.0/panorama/stitchingsoftware" ] ) ) { // Test for 360 image
2278
2276
me . parentView . mediaContainer . empty ( ) ;
2279
2277
me . parentView . mediaObjectView = new $ . I360ObjectView ( model , parentView ) ;
2280
2278
me . parentView . mediaObjectView . annotations = me . annotations ;
2281
2279
me . parentView . mediaObjectView . createObject ( ) ;
2282
2280
return ;
2283
- }*/
2281
+ }
2284
2282
me . doImageSetup ( this ) ;
2285
2283
} ) ;
2286
2284
You can’t perform that action at this time.
0 commit comments