blackberry / BB10-WebWorks-Framework

The BB10 WebWorks Framework is packaged within an application BAR file to run on a BB10 device (or simulator)
60 stars 34 forks source link

As a WebWorks developer, I would like to be able to take a video from camera inline my app using eg. navigator.webkitGetUserMedia. #190

Closed RonMen closed 12 years ago

RonMen commented 12 years ago

With the blackberry.media.camera.takeVideo(onCaptured, [onCameraClosed], [onError]) it would be possible to open up the camera and take a video, get the return-path of the video and do something with it.

For BB10 I would request for a feature like the navigator.webkitGetUserMedia to access the camera directly to take eg. take a snapshot as a picture or to take a video of what can be seen from the camera. In that way you can think of a bunch new apps - eg. snapshots to upload somewhere (FB, Twitter, ...) or send via mail directly, 1D/2D Code Reader, face detection, ... - that could be written based on WebWorks.

Reference: http://www.html5rocks.com/en/tutorials/getusermedia/intro/

nukulb commented 12 years ago

So we are not doing the blackberry.media.camera.takeVideo any more. Instead we will be supporting capture attribute in the input field

I have branch going here - https://github.com/blackberry-webworks/BB10-WebWorks-Framework/tree/picker

Checkout my test case to understand it better - https://github.com/blackberry-webworks/BB10-WebWorks-Framework/commit/8fe50c6b111fccc8e3495c26fdc8a565c6a90dbe#diff-7

getUserMedia is being worked on but does not have any timelines yet.

RonMen commented 12 years ago

That is even what I would suggest at this time if you use those input types for direct access to the camera. IMHO it would be great if you can access the rendering of these input elements to be a HTML5 media source to use/show it and also be able to "manipulate" eg. with canvas or whatever might be a solution for an developer.

BTW: Is it possible to directly get your example test case running with the "latest" 10.0.6.386 release?

kwallis commented 12 years ago

Thanks for all the feedback. As Nukul mentioned, getUserMedia seems to be what you are looking for in terms of direct access to the camera feed, and will be coming. The style media capture approach will be more of an invocation of the native camera application to capture a still image or video that can be processed afterwards.

Ken Wallis

Product Manager – BlackBerry WebWorks

Research In Motion

(905) 629-4746 x14369


From: RonMen [notifications@github.com] Sent: Thursday, August 09, 2012 5:00 AM To: blackberry/BB10-WebWorks-Framework Subject: Re: [BB10-WebWorks-Framework] As a WebWorks developer, I would like to be able to take a video from camera inline my app using eg. navigator.webkitGetUserMedia. (#190)

That is even what I would suggest at this time if you use those input types for direct access to the camera. IMHO it would be great if you can access the rendering of these input elements to be a HTML5 media source to use/show it and also be able to "manipulate" eg. with canvas or whatever might be a solution for an developer.

— Reply to this email directly or view it on GitHubhttps://github.com/blackberry/BB10-WebWorks-Framework/issues/190#issuecomment-7608908.


This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.