How to detect if a video is in 360 format in javascript?

I have an interface where the user may upload a video that can be in 360 format or in normal format, each case need to be treated differently. Any suggestions on how to detect if the video is in 360 format or not?

Thanks