Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

live-pusher无法正常使用 #121

Open
moke8 opened this issue Sep 19, 2022 · 0 comments
Open

live-pusher无法正常使用 #121

moke8 opened this issue Sep 19, 2022 · 0 comments
Assignees

Comments

@moke8
Copy link

moke8 commented Sep 19, 2022

问题描述
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
@zhetengbiji zhetengbiji transferred this issue from dcloudio/uni-app Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants