[TIMOB-24026] TIMOB-14533 app on Media Module displays video capture button when it should display image capture button
GitHub Issue | n/a |
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2016-11-10T19:23:51.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Lee Morris |
Assignee | Lee Morris |
Created | 2016-10-12T23:23:40.000+0000 |
Updated | 2017-03-23T22:31:28.000+0000 |
Description
For the TIMOB-14533 app on MediaModule it is supposed to allow the user to Open Camera and then take a photograph. However, the only option is to capture a video and if you capture the video and select that the app shows an alert which states "got the wrong type back=public video".
Attachments
Please provide a reproducible demo-code (best in a single app.js), thank you! Also, you are talking about Android, right?
User can use camera. Remove Ti.Media.MEDIA_TYPE_VIDEO from mediaTypes. To explicitly record video see *Android Capture Video Example* section at: http://docs.appcelerator.com/platform/latest/#!/guide/Camera_and_Photo_Gallery_APIs.
[~fmerzadyan] The developer should be able to specify both photo and video media types unless Android disallows that. If that's the case, we need to update our docs regarding this behavior.
In the docs, it said that 'allowEditing and mediaTypes are iOS-only settings' (see http://docs.appcelerator.com/platform/latest/#!/guide/Camera_and_Photo_Gallery_APIs) and also in Android you have to declare a separate button for photo and video. So the same button is not allowed to be linked to different media types.
Closing ticket as Won't Fix with reference to the above comments.