Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3957] Unable to use multiple mediaTypes

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2016-07-20T19:00:59.000+0000
Affected Version/sAppcelerator Studio 4.3.0
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid, bug, camera
ReporterStefan Sgorzaly
AssigneeShak Hossain
Created2016-06-29T14:29:46.000+0000
Updated2016-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) {
				. . .
			}
		});

Comments

  1. Sharif AbuDarda 2016-07-13

    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.

JSON Source