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

微信小程序:getRecorderManager 在taro里使用,会录制手机本身播放的音频,音乐播放器播放时调用也不会暂停音乐。有没有遇到过相同问题的?怎么解决?? #16552

Open
Coralxin opened this issue Sep 18, 2024 · 2 comments
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@Coralxin
Copy link

相关平台

微信小程序

复现仓库

https://github.com/Coralxin/taro_wx_record.git
小程序基础库: 3.5.3
使用框架: Vue 3

复现步骤

代码下载到本地,按照readme启动微信小程序。

使用真机2.0调试。

1、场景一:点击【录音】,开始说话10s左右,点击【停止】。再点击【播放录音】

2、场景二:打开手机音乐播放器,任选一首播放,切换到小程序,执行步骤1,播放器没有被暂停,录音中也含有音乐声

期望结果

1、录音中不应该包含播放的音频,应该只有录制的人声

2、开始录音时,应该暂停音乐播放器,不应该含有音乐

实际结果

1、场景后面几秒有双重声音

2、音乐没有被暂停,录音中含有音乐声

环境信息

 Taro v3.6.34


  Taro CLI 3.6.34 environment info:
    System:
      OS: Windows 10 10.0.19045
    Binaries:
      Node: 18.19.0 - H:\SoftFiles\nodejs\node.EXE
      npm: 10.2.3 - H:\SoftFiles\nodejs\npm.CMD   
    npmPackages:
      @tarojs/cli: 3.6.34 => 3.6.34
      @tarojs/components: 3.6.34 => 3.6.34
      @tarojs/helper: 3.6.34 => 3.6.34
      @tarojs/plugin-framework-vue3: 3.6.34 => 3.6.34
      @tarojs/plugin-html: ^3.6.33 => 3.6.33
      @tarojs/plugin-platform-alipay: 3.6.34 => 3.6.34
      @tarojs/plugin-platform-h5: 3.6.34 => 3.6.34
      @tarojs/plugin-platform-jd: 3.6.34 => 3.6.34
      @tarojs/plugin-platform-qq: 3.6.34 => 3.6.34
      @tarojs/plugin-platform-swan: 3.6.34 => 3.6.34
      @tarojs/plugin-platform-tt: 3.6.34 => 3.6.34
      @tarojs/plugin-platform-weapp: 3.6.34 => 3.6.34
      @tarojs/runtime: 3.6.34 => 3.6.34
      @tarojs/shared: 3.6.34 => 3.6.34
      @tarojs/taro: 3.6.34 => 3.6.34
      @tarojs/taro-loader: 3.6.34 => 3.6.34
      @tarojs/webpack5-runner: 3.6.34 => 3.6.34
      babel-preset-taro: 3.6.34 => 3.6.34
      eslint-config-taro: 3.6.34 => 3.6.34
@TheKonka TheKonka added V-3 Version - 3.x F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 labels Sep 18, 2024
@TheKonka
Copy link
Member

这个不一定是 taro 的问题,你可以试下原生小程序是否是同样的效果,我试了 原生小程序点击录音 音乐播放器也是没有被暂停的

@Coralxin
Copy link
Author

这个不一定是 taro 的问题,你可以试下原生小程序是否是同样的效果,我试了 原生小程序点击录音 音乐播放器也是没有被暂停的

是的,我在微信社区也提了。但是上个月测试业务功能的时候是正常的,这几天就出现了这个问题

This was referenced Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
Status: Todo
Development

No branches or pull requests

2 participants