How do parametrs sent from javascript to native part?

How do parametrs sent from javascript to native part?

BY 05 Dec 2013 Native Application Development

Hi, everibody! I develope a music app and i need a help!

I need to manipulate of song duration position with javascript and sent a SeekTo  long msTime parameter to the c++ code in a Tizen::Media::Player::SeekTo(long msTime)

I can’t sent a “long msTime” to Tizen::Media::Player::SeekTo(long msTime).

I sent a pause command. It’s Ok.

if(gRemoteMessagePort) {
sendCommand("pause");
}

I sent a seekTo command to  Tizen::Media::Player::SeekTo(long msTime). it’s fail.


if(gRemoteMessagePort) {
sendCommand("seekto", longMsTime);

 

Can you explain me how to sent data parameters to native function or give me a working example of code?

 

Thanks.

 

Written by