Languages

Menu
Sites
Language
Wearable Motion is not working. (gear S1, gear S2)

I tried to motion tracking in gearS1 and S2 using sensor.

Device motion event is to operate well, But window.webapis.motion.startHandGestureRecognition function is not detect well.

Please let me know additional test or code.

 

window.webapis.motion.startHandGestureRecognition( function( info){
    console.log(info);

    //MOVE_UP, MOVE_LEFT, MOVE_RIGHT .....
}, "LEFT_BODY_SIDE", "ONE_WAY_MODE");

Responses

1 Replies
Nafisul Islam Kiron

Please try,

 function onchangedCB(resultInfo) {
        console.log("Event : "+ resultInfo.gestureEvent);
 } 

 webapis.motion.startHandGestureRecognition(onchangedCB, "RIGHT_BODY_SIDE", "ROUND_TRIP_MODE");

 // when you are done using, stop hand gesture
 // webapis.motion.stopHandGestureRecognition();

 

from here:

http://developer.samsung.com/onlinedocs/web_device/webapis/motion.html#startHandGestureRecognitionidp33055424