ezuikit-js 8.0.9 → 8.0.10-alpha.2

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/README.md CHANGED
@@ -419,49 +419,6 @@ themeData将主题数据本地化,设置本地数据,需要删除template参
419
419
  player.fullScreen();
420
420
  ```
421
421
 
422
- #### 对讲设置麦克风增益
423
-
424
- ```
425
- // 设置音频增益系数 0 ~ 10
426
- player.setVolumeGain(volume);
427
- ```
428
-
429
- #### 获取麦克风权限
430
-
431
- ```
432
- player.getMicrophonePermission().then(data => {
433
- if (data.code === 0) {
434
- // 成功....
435
- }
436
- })
437
- ```
438
-
439
- #### 获取麦克风列表
440
-
441
- ```
442
- // 需要在麦克风已授权的情况下调用,才能获取到麦克风列表,可以和getMicrophonePermission配合使用,或在初始化后先调用getMicrophonePermission获取授权
443
- player.getMicrophonesList().then(data => {
444
- if (data.code === 0) {
445
- // 成功....
446
- }
447
- })
448
- ```
449
-
450
- #### 切换麦克风
451
-
452
- ```
453
- // microphoneId 为获取到的麦克风列表中的deviceId,如果当前处于对讲中,调用setProfile会先关闭,重新发起对讲
454
- player.setProfile({ microphoneId })
455
- ```
456
-
457
- #### 监听麦克风音量变化
458
- ```
459
- player.eventEmitter.on('volumeChange', ({ data }) => {
460
- // 动态显示音柱,100ms触发一次
461
- console.log(`${data * 100}%`)
462
- })
463
- ```
464
-
465
422
  #### 取消全屏
466
423
 
467
424
  ```js