function startCamera() { var str = captrue.bStopPlay(); str = captrue.bStartPlay(); } function upLoadJPG(formId) { var str = captrue.bStopPlay(); document.getElementById(formId).submit(); } function startPhotograph(localPath,fileName,host,port,uploadUrl) { if(localPath=="") { alert("选择本地保存路径"); return; } fileIndex++; captrue.vSetRotate(90); var localFile = fileName + "_" + fileIndex + ".JPG"; var str = captrue.bSaveJPG(localPath, fileName + "_" + fileIndex); str = captrue.bUpLoadImage(localPath + localFile, host, port, uploadUrl); str = captrue.bDeleteFile(localPath + localFile); } function stopCamera() { var str = captrue.bStopPlay(); }