change the string used for determining if a video is a panoramic one

This commit is contained in:
tibbi 2018-11-01 21:47:20 +01:00
parent 124cb9334c
commit 0cad141a5b
1 changed files with 4 additions and 1 deletions

View File

@ -736,7 +736,10 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S
break break
} }
} }
mIsPanorama = sb.toString().contains("<GSpherical:Spherical>true") || sb.toString().contains("GSpherical:Spherical=\"True\"")
val xmlString = sb.toString().toLowerCase()
mIsPanorama = xmlString.contains("gspherical:projectiontype>equirectangular") ||
xmlString.contains("gspherical:projectiontype=\"equirectangular\"")
return return
} }