dcloudio / dcloudio/native-docs
live-pusher无法正常使用
- Dominant language
- No language data
- Stars
- 88
- Forks
- 75
- PR merge metrics
- No merged PRs in 30d
Description
**问题描述**
switchCamera可以执行,但是pause、stop、snapshot均无法使用/回调函数不执行
**复现步骤**
onMounted
```
livePusher = uni.createLivePusherContext("livePusher", (instance as any).ctx)
livePusher.switchCamera()
```
onSnapshot
```
livePusher.snapshot({
success: (e: any) => {
uni.showToast({
title: '123123',
icon: 'none'
})
},
fail: (e: any) => {
uni.showToast({
title: '123123',
icon: 'none'
})
}
});
```
onPause
```
livePusher.pause();
```
**预期结果**
能够正常得到回调或者快照地址
**系统信息:**
- 发行平台: App
- 操作系统 Android 12.0
- HBuilderX版本 3.6.3.20220917
- uni-app版本 ^3.0.0-alpha-3060120220907002
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.