media-av 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/index.d.ts +13 -7
- package/package.json +3 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023-present, w.w.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/index.d.ts
CHANGED
|
@@ -133,7 +133,7 @@ export interface ICallSession {
|
|
|
133
133
|
/**
|
|
134
134
|
* 本会话的号码
|
|
135
135
|
*/
|
|
136
|
-
readonly tel
|
|
136
|
+
readonly tel: string;
|
|
137
137
|
|
|
138
138
|
/**
|
|
139
139
|
* 会话当前状态
|
|
@@ -184,26 +184,32 @@ export interface ICallSession {
|
|
|
184
184
|
*/
|
|
185
185
|
hangup(): void;
|
|
186
186
|
|
|
187
|
+
/**
|
|
188
|
+
* 发送dtmf
|
|
189
|
+
* @param dtmf{string} 要发送的按键值 0-9 * #
|
|
190
|
+
*/
|
|
191
|
+
dtmf(dtmf: string): boolean;
|
|
192
|
+
|
|
187
193
|
/**
|
|
188
194
|
* 转换前后置摄像头
|
|
189
|
-
* @returns {Promise<string
|
|
195
|
+
* @returns {Promise<string>}
|
|
190
196
|
* @constructor
|
|
191
197
|
*/
|
|
192
|
-
changeCamera(): Promise<string
|
|
198
|
+
changeCamera(): Promise<string>;
|
|
193
199
|
|
|
194
200
|
/**
|
|
195
201
|
* 改变麦克风状态
|
|
196
|
-
* @returns {Promise<boolean
|
|
202
|
+
* @returns {Promise<boolean>}
|
|
197
203
|
* @constructor
|
|
198
204
|
*/
|
|
199
|
-
changeMuted(): Promise<boolean
|
|
205
|
+
changeMuted(): Promise<boolean>;
|
|
200
206
|
|
|
201
207
|
/**
|
|
202
208
|
* 改变本地摄像头状态, 打开或关闭本地摄像头
|
|
203
|
-
* @returns {Promise<boolean
|
|
209
|
+
* @returns {Promise<boolean>}
|
|
204
210
|
* @constructor
|
|
205
211
|
*/
|
|
206
|
-
changeCameraOpened(): Promise<boolean
|
|
212
|
+
changeCameraOpened(): Promise<boolean>;
|
|
207
213
|
|
|
208
214
|
/**
|
|
209
215
|
* 注销
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "media-av",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.6",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "W.w.",
|
|
7
|
+
"license": "MIT",
|
|
7
8
|
"files": [
|
|
8
9
|
"dist",
|
|
9
|
-
"index.d.ts"
|
|
10
|
-
"README.md"
|
|
10
|
+
"index.d.ts"
|
|
11
11
|
],
|
|
12
12
|
"main": "./dist/mediaAV.umd.cjs",
|
|
13
13
|
"module": "./dist/mediaAV.js",
|