Languages

Menu
Sites
Language
change back and front Camera API

I had been searching for a week, but i can't find how to change the camera in web application, i don't want use the appControl because i want to custom the camera view. In the last API 2.1 they say : web application can not access the back camera. Is there any thing new at API 2.3 that i dont know. Please, somebody help me! many thanks!

Responses

7 Replies
AVSukhov

Hello,

In Tizen 2.3 are no changes.

Tizen doesn`t support MediaStreamTrack from Media Capture and Streams specification.

From Tizen 2.3 documentation:

Only the front-facing camera is available in this version (Tizen 2.3 Mobile Profile).

Alex Dem
Hi,
Only front camera. Regarding camera for web app, just fyi:
https://developer.tizen.org/dev-guide/2.3.0/org.tizen.mobile.web.appprogramming/html/sample_descriptions/selfcamera.htm
Alexey.
Dang Nam

thank you Sukhov and Alex, so sad :D

Seoghyun Kang

Hello,

 

Recently, Tizen 2.4 SDK for mobile was released. 

Tizen 2.4 SDK for mobile is supporting the "facingMode". So you can select the front or rear camera. :)

 

Please refer the following sample code.

// Rear Camera
var rearCamera = function () {
    navigator.getUserMedia(
    	{
		audio: false, 
		video: true,
		facingMode: "environment"
	} 
    , null, null);
};

// Front Camera
var frontCamera = function () {
    navigator.getUserMedia(
    	{
		audio: false, 
		video: true
	} 
    , null, null);
};

 

AVSukhov

Hello,

I did not find this info in the documentation.

Could you please share the link? I will be grateful.

Marco Buettner

From the release notes: https://developer.tizen.org/development/tools/download/release-notes/2.4-oct-22-2015

GetUserMedia - Facing Mode support

    You can select the front or rear camera using JavaScript.
    W3C specification: http://www.w3.org/TR/mediacapture-streams/#constraints
AVSukhov

Ok. Thanks, Marco.