[TIMOB-993] Ti.Media.isCameraSupported not implemented on Android
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-02-14T23:29:03.000+0000 |
| Affected Version/s | Release 1.7.0 |
| Fix Version/s | Sprint 2012-03, Release 2.0.0, Release 1.8.2 |
| Components | Android |
| Labels | module_media, parity, qe-testadded |
| Reporter | Bill Dawson |
| Assignee | Bill Dawson |
| Created | 2011-04-15T02:41:05.000+0000 |
| Updated | 2012-02-14T23:29:03.000+0000 |
Description
self-explanatory
One of our co-dev has noticed the absence of this property.
Testing Notes
Test this app on a Kindle Fire (or another device with no camera), and then on any device with a camera. The alert should accurately tell you whether a camera is supported. Note that settinghw.camera=noin an emulator will not be sufficient to test this (see http://groups.google.com/group/android-developers/browse_thread/thread/9eaf5f0edc75ed62?pli=1 ). So use hardware devices only.Titanium.UI.setBackgroundColor('#000'); var win = Titanium.UI.createWindow({ title:'Test', backgroundColor:'#000', exitOnClose: true }); alert("Is camera supported? " + Ti.Media.isCameraSupported); win.open();Pull request ready https://github.com/appcelerator/titanium_mobile/pull/1300
Tested with Kindle Fire and Nexus S 2.3.6 with 1.9.0.v20120202210134