语言

Menu
Sites
Language
Notification on Volume control event

Hi,

   I'm trying to implement zoom functionality for camera app created using webapp. I'm planning to implement the zoom functionality using the volume keys. Do we have any way to identify the volume key press event from webapp?

编辑者为: Brock Boland 17 3月, 2014 原因: Paragraph tags added automatically from tizen_format_fix module.

响应

4 回复
Lakshmi Grandhi
In the curret SDK, all the hardware keys are handled by deamon, it doesn't support adding keyeventlistener in webapplication. But native application support this for more information go through https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.native.appprogramming%2Fhtml%2Fguide%2Fui%2Fevent_listener.htm The Keycodes and Keynames mapping for volumeUP and VolumeDown are keyName=VOLUME_UP keyCode= 115 keyName=VOLUME_DOWN keyCode=114 There are bugs in JIRA for volume control events also, once those are fixed they will publish information how to handle volume change events https://bugs.tizen.org/jira/browse/TIVI-588
Aries Brune Tyson Antony Raj
I came across the native code as well.. I'm looking for doing it through web application.. In native app, i came across the following link which has options to get the volume level through settings.. Will it be made available in web application in the future release? https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.native.appprogramming%2Fhtml%2Fguide%2Fsystem%2Fsettings_info.htm
Lakshmi Grandhi
If the bug gets resolved, atleast there will be some information how to access hardware keys for volume control Thanks Lakshmi
Aries Brune Tyson Antony Raj
Hi Lakshmi, The bug is resolved with the following comment. I don't think it will be useful for web app development. And what is meant by class based volume?? Does it mean it supports access through native classes?? "Supported by PA in Tizen IVI 2.0. libmm API supports only class based volume."