This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fh.acc( {interval:5000}, function(res){ | |
alert( 'x='+res.x+', y='+res.y+', z='+res.z+', at='+res.when); | |
} ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fh.act( { act:'myfunction', | |
secure: false, | |
req:{...} }, | |
function(res) { alert(JSON.stringify(res)); | |
function(code,errorprops,params) {...} ); } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fh.audio( {"path":"rtsp://example.com/audio", "act" : "play"}, | |
function(result){alert(result) }, | |
function(result){alert("fail" + result)}); | |
$fh.audio( {"act" : "pause"}, | |
function(result){alert(result)}, | |
function(result){alert("fail" + result)}); | |
$fh.audio( {"act" : "stop"}, | |
function(result){alert(result)}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fh.cache( | |
{ | |
act: 'save/load/remove', | |
key: <a key for the object> | |
val: <the data to cache>, | |
expire: <the duration of the object> | |
} | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fh.cam({act:'picture'}, function(res){ | |
var img = new Image(); | |
img.src='data:image/'+res.format+';base64,'+res.b64; | |
} ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fh.contacts( function(res) { | |
var ul = document.createElement('ul'); | |
for( var i in res.list ) { | |
var li = document.createElement('li'); | |
li.innerHTML = '<i>'+res.list[i].name+'</i>'; | |
ul.appendChild(li); | |
} | |
document.getElementById('contacts').appendChild(ul); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var res = $fh.getRequestDetails(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"userAgent": <user agent string>, | |
"maxWidth": <max width of device screen, in pixels>, | |
"maxHeight": <max height of device screen, in pixels>, | |
"visibleWidth": <visible width in the device browser, in pixels>, | |
"visibleHeight": <visible height in the device browser, in pixels>, | |
"ipAddress": <client IP Address> | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"userAgent":"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)", | |
"maxWidth":320, | |
"maxHeight":240, | |
"visibleWidth":300, | |
"visibleHeight":220, | |
"ipAddress":"127.0.0.1" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fh.env( {/*none*/}, | |
function(envprops) { alert(JSON.stringify(envprops)) }, | |
function(code,errorprops,params) { /*none*/ } ); |
OlderNewer