Managing smartphone orientation for camera


#1

Hi everyone,

I’m using the Capture plugin so as to take videos ans the FileTransfer one to upload them to my server. These videos are played on a website so they have to be taken on landscape mode in the app.
Is there a way I can detect the smartphone’s camera orientation in order to display a message and authorize the capture only in landscape mode?

Thanks


#2

Of course there is, it’s called Cordova ScreenOrientation plugin and you can use it to detect screen orientation or event to lock it.

###Read about it here.


#3

Thank you very much :smile: