[AC-3957] Unable to use multiple mediaTypes
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2016-07-20T19:00:59.000+0000 |
Affected Version/s | Appcelerator Studio 4.3.0 |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | android, bug, camera |
Reporter | Stefan Sgorzaly |
Assignee | Shak Hossain |
Created | 2016-06-29T14:29:46.000+0000 |
Updated | 2016-07-20T19:00:59.000+0000 |
Description
When specifying multiple media types in the function "showCamera" ( video & photo ), then you can only record a video. The switch between video and photo is not possible. On iOS it works.
*Tested on Nexus 9 /Android 6.0.1*
*Example:*
Titanium.Media.showCamera({
saveToPhotoGallery : false,
allowImageEditing : false,
mediaTypes : [Ti.Media.MEDIA_TYPE_PHOTO, Ti.Media.MEDIA_TYPE_VIDEO],
videoQuality : Ti.Media.QUALITY_LOW,
success : function(event) {
. . .
},
cancel : function() {
. . .
},
error : function(error) {
. . .
}
});
Hello, According to the docs http://docs.appcelerator.com/platform/latest/#!/guide/Camera_and_Photo_Gallery_APIs the way you are using the showCamera function you can only capture photo in Android. See the first example note. For video capture in Android there is example provided later on. Thanks Sharif.