File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
system/application/views/widgets/mediaelement Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2998,13 +2998,13 @@ function YouTubeGetID(url){
2998
2998
2999
2999
var metadataFunc = function ( ) {
3000
3000
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" ] ) ) {
3003
3003
me . parentView . mediaContainer . empty ( ) ;
3004
3004
me . parentView . mediaObjectView = new $ . V360ObjectView ( model , parentView ) ;
3005
3005
me . parentView . mediaObjectView . createObject ( ) ;
3006
3006
return ;
3007
- }*/
3007
+ }
3008
3008
3009
3009
me . parentView . intrinsicDim . x = me . video [ 0 ] . videoWidth ;
3010
3010
me . parentView . intrinsicDim . y = me . video [ 0 ] . videoHeight ;
You can’t perform that action at this time.
0 commit comments