dcloudio / native-docs

uni小程序SDK & 5+ SDK 原生开发文档
Apache License 2.0
81 stars 74 forks source link

live-pusher无法正常使用 #121

Open moke8 opened 2 years ago

moke8 commented 2 years ago

问题描述 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();

预期结果 能够正常得到回调或者快照地址

系统信息: