Skip to content

Commit 91e46ae

Browse files
committed
update v1.0.6
1 parent 119644e commit 91e46ae

File tree

2,408 files changed

+8323
-73914
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,408 files changed

+8323
-73914
lines changed

.DS_Store

6 KB
Binary file not shown.

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ const plugin = uni.requireNativePlugin('super_ezviz');
3434

3535
```js
3636
plugin.initUniOpenSDK({
37-
"openApiServer": 'https://ezcpcloudopen.wens.com.cn',
38-
"openAuthApiServer": 'https://ezcpcloudopenauth.wens.com.cn',
37+
"openApiServer": 'https://open.ys7.com',
38+
"openAuthApiServer": 'https://openauth.ys7.com',
3939
"appKey": '',
4040
"accessToken": ''
4141
})
@@ -70,7 +70,20 @@ videoPlayer.createPlayer(this.deviceSerial, this.channelNo, this.validCode, (res
7070
```
7171

7272
## 3、功能列表
73+
### 3.1、插件API
74+
*1.初始化 Demo 参考 demo/pages/index/index.vue,使用前请先填入appKey、accessToken*
7375

76+
*2.配网 Demo 参考 demo/pages/configWifi/index.vue,使用前请先填入wifiSsid、wifiPwd、deviceSerial、deviceType、deviceVerifyCode*
77+
78+
| 序号 | API | 名称 | 入参 | 返回结果 |
79+
| - | - | - | - | - |
80+
| initUniOpenSDK | 初始化SDK | option {<br/>&nbsp;&nbsp;&nbsp;&nbsp;openApiServer 服务地址(公有云使用https://open.ys7.com)<br/>&nbsp;&nbsp;&nbsp;&nbsp;openAuthApiServer auth地址(公有云使用https://openauth.ys7.com)<br/>&nbsp;&nbsp;&nbsp;&nbsp;appKey 萤石开放平台提供的 appkey<br/>&nbsp;&nbsp;&nbsp;&nbsp;accessToken 萤石开放平台提供的 accessToken<br/>}<br/>callback 回调 | success<br/>code<br/>msg |
81+
| probeDeviceInfo | 【配网】查询设备信息 | deviceSerial 设备序列号<br/>deviceType 设备类型<br/>deviceVerifyCode 设备验证码<br/> | success<br/>code<br/>msg<br/>data 设备 HotSpot 类别 |
82+
| startAPConfigWifiWithSsid | 【配网】开始AP配置 | wifiSsid WiFi名称<br/>wifiPwd WiFi密码<br/>deviceSerial 设备序列号<br/>deviceVerifyCode 设备验证码<br/>deviceHotspotName 设备热点名称(HotSpot前缀_设备序列号)<br/>deviceHotspotPwd 设备热点密码(HotSpot前缀_设备验证码)<br/>autoConnectToDeviceHotSpot 自动连接热点<br/>callback 回调 | success<br/>code<br/>msg |
83+
| addDevice | 【配网】添加设备 | deviceSerial 设备序列号<br/>deviceVerifyCode 设备验证码<br/>callback 回调<br/> | success<br/>code<br/>msg |
84+
| stopAPConfigWifi | 【配网】停止AP配置 | | |
85+
86+
### 3.2、播放组件API
7487
| 序号 | API | 名称 | 入参 | 返回结果 |
7588
| --- | --------------------- | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------ |
7689
| 1 | createPlayer | 初始化播放器 | deviceSerial 设备序列号<br>channelNo 通道号<br>verifyCode 验证码<br>callback 回调 | code<br>msg |

android/super_ezviz.aar

-4.67 KB
Binary file not shown.
File renamed without changes.
File renamed without changes.

demo/manifest.json

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
{
2+
"name" : "uniapp-appSDKdemo2",
3+
"appid" : "__UNI__B91ED04",
4+
"description" : "",
5+
"versionName" : "1.0.7",
6+
"versionCode" : 107,
7+
"transformPx" : false,
8+
/* 5+App特有相关 */
9+
"app-plus" : {
10+
"compatible" : {
11+
"ignoreVersion" : true
12+
},
13+
"usingComponents" : true,
14+
"nvueStyleCompiler" : "uni-app",
15+
"compilerVersion" : 3,
16+
"splashscreen" : {
17+
"alwaysShowBeforeRender" : true,
18+
"waiting" : true,
19+
"autoclose" : true,
20+
"delay" : 0
21+
},
22+
"titleNView" : false,
23+
"screenOrientation" : [
24+
"portrait-primary",
25+
"portrait-secondary",
26+
"landscape-primary",
27+
"landscape-secondary"
28+
],
29+
/* 应用发布信息 */
30+
"distribute" : {
31+
/* android打包配置 */
32+
"android" : {
33+
"permissions" : [
34+
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
35+
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
36+
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
37+
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
38+
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
39+
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
40+
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
41+
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
42+
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
43+
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
44+
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
45+
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
46+
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
47+
"<uses-feature android:name=\"android.hardware.camera\"/>",
48+
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
49+
],
50+
"targetSdkVersion" : 28,
51+
"minSdkVersion" : 21
52+
},
53+
/* ios打包配置 */
54+
"ios" : {
55+
"dSYMs" : false,
56+
"privacyDescription" : {
57+
"NSPhotoLibraryUsageDescription" : "我们需要访问您的相册以便保存和分享照片。",
58+
"NSPhotoLibraryAddUsageDescription" : "我们需要访问您的相册以便保存和分享照片。",
59+
"NSMicrophoneUsageDescription" : "我们需要访问您的麦克风以便录制音频。"
60+
}
61+
},
62+
/* SDK配置 */
63+
"sdkConfigs" : {
64+
"ad" : {}
65+
}
66+
},
67+
/* 模块配置 */
68+
"modules" : {},
69+
"nativePlugins" : {
70+
"super_ezviz" : {
71+
"__plugin_info__" : {
72+
"name" : "super_ezviz",
73+
"description" : "",
74+
"platforms" : "Android,iOS",
75+
"url" : "",
76+
"android_package_name" : "",
77+
"ios_bundle_id" : "",
78+
"isCloud" : false,
79+
"bought" : -1,
80+
"pid" : "",
81+
"parameters" : {}
82+
}
83+
}
84+
}
85+
},
86+
/* 快应用特有相关 */
87+
"quickapp" : {},
88+
/* 小程序特有相关 */
89+
"mp-weixin" : {
90+
"appid" : "",
91+
"setting" : {
92+
"urlCheck" : false
93+
},
94+
"usingComponents" : true
95+
},
96+
"mp-alipay" : {
97+
"usingComponents" : true
98+
},
99+
"mp-baidu" : {
100+
"usingComponents" : true
101+
},
102+
"mp-toutiao" : {
103+
"usingComponents" : true
104+
},
105+
"uniStatistics" : {
106+
"enable" : false
107+
},
108+
"vueVersion" : "2",
109+
"android" : {
110+
"useAndroidX" : true,
111+
"minSdkVersion" : 17
112+
}
113+
}

demo/nativeplugins/.DS_Store

6 KB
Binary file not shown.
6 KB
Binary file not shown.

0 commit comments

Comments
 (0)