TmrApp/script/module/ezopen.js

48 lines
1.3 KiB
JavaScript
Raw Normal View History

2023-09-12 14:50:52 +08:00
// var ezOpen = null;
// var ezopenUtil = {
// initezopen:function(){
// ezOpen = api.require('ezOpen');
// var initParam = {
// appKey: "6939860c5fd041d6a5a77bbf4730f6e4",
// accessToken: "at.8ndqcuqtbtrttqk36s2mkdfn9sr3q3y8-67wtjj0m6r-0pr533i-gxyfk6v5d"
// };
// ezOpen.init(initParam, function (ret) {
// if (ret.status) {
// } else {
// console.warn("摄像头初始化失败")
// }
// });
// },
// open:function(callback){
// var openParam = {
// deviceSerial: "L16636902",
// cameraNo: 1,
// verifyCode: '',
// rect: {
// x: 665,
// y: 100,
// // w: api.screenWidth,
// w: 265,
// // h: api.screenHeight,
// h: 220,
// },
// };
// ezOpen.open(openParam, function (ret) {
// if (ret.status) {
// callback(ret)
// } else {
// console.warn("摄像头打开失败")
// }
// });
// },
// capPicture:function(callback) {
// ezOpen.capturePicture({}, function (ret) {
// callback(ret)
// });
// },
// };
// export {
// ezopenUtil
// }