@Chengliang you get the gravity using
import CoreMotion
let motionManager = CMMotionManager()
motionManager.deviceMotion?.gravity`
Post
Replies
Boosts
Views
Activity
Try using a New Private Window in Safari.
I can't edit my above comment - but DO NOT use the above method in a production app, this is just how I have been able to get it to work in testing. Don't hard code your .videoformat as it changes in different releases of iOS and for different devices.