ALL properties of Titanium.Media return NULL
I'm using Titanium.Media recently,but now a strange problem comes to me,that ALL properties of Titanium.Media return null,such as Titanium.Media.availableCameraMediaTypes,Titanium.Media.availablePhotoMediaTypes,Titanium.Media.isMediaTypeSupported, even Titanium.Media.isCameraSupported.
why "Titanium.Media.isCameraSupported" is NULL?should it be false by default,or true if i have a camera?
1 Answer
-
Are you running it on a device or simulator? Because the simulator may return null for those types of things, just because of the ways it's set up.