Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3803] iOS: Expose Camera's View via Ti.Media.createCameraView

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionDuplicate
Resolution Date2020-02-14T11:18:02.000+0000
Affected Version/sRelease 1.7.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterDawson Toth
AssigneeRene Pot
Created2011-04-28T09:26:01.000+0000
Updated2020-02-14T11:18:02.000+0000

Description

Feature

In Ti.Media.showCamera, the camera is shown to the user in a modal window, and its view is never exposed to the calling code. By creating a function Ti.Media.createCameraView, the developer could add the camera to their own windows, embedding it in their app.

Anticipated Behavior

Ti.Media.createCameraView would return a view that can be positioned like other Ti elements like windows, views, labels, etc. You could specify a top, left, right, bottom, transform, opacity, etc, and add or remove it from a parent view. You would still need to be able to pass in the usual arguments that Ti.Media.getCamera receives, such as showControls, autohide, success, error, etc.

Associated Helpdesk Ticket

http://appc.me/c/APP-134813

Comments

  1. Matthew Apperson 2011-09-27

    It is... this link here (http://stackoverflow.com/questions/5915943/use-camera-as-subview) is a good jumping off point for doing this. The only "issue" being it would be a 4.0+ feature only
  2. Anirudh Nagesh 2012-07-02

    Associated Helpdesk Ticket: http://appc.me/c/APP-263147
  3. Rene Pot 2020-02-14

    Closing as duplicate of TIMOB-23848

JSON Source