Languages

Menu
Sites
Language
I can't find how to use FLASH, or function to swithch to front camera,I am building a photo editor in HTML/CSS

Could anybody tell me where can I find functions for turning on the flash when taking pictures, And the function for switching from back to front camera, I searched the camera API, and couldn't find it. So if anybody knows how to do this please share here.

Responses

2 Replies
Alex Ashirov

Hi,

AFAIK, It’s possible using native API:

result Tizen::Media::Camera::SetFlashMode  ( CameraFlashMode  flashMode )

But if you are using Web API then it would be better to ask the question here:

https://developer.tizen.org/forums/web-application-development

Alex Dem

Hi,
I did not find any info regarding support of flash for camera (in web apps):
https://developer.tizen.org/forums/web-application-development/how-turn-on-flashlight
Regrding camera switch please look at this (looks like only front camera is allowed for Web )
https://developer.tizen.org/documentation/articles/audio-video-playback-tutorial?langredirect=1#recordvideo
Try to study 'selfCamera' example in Web samples (it uses front camera).
Alexey.