Skip to content

innerAudioContext中的obeyMuteSwitch设置为false,在(微信 for ios)中 无效。 #5715

@NotSleeply

Description

@NotSleeply

发行方式

小程序

具体平台

微信小程序8.0.61

开发环境

Windows

项目创建方式

CLI命令行

依赖版本

"@dcloudio/uni-app": "3.0.0-4070520250711001",

问题描述

使用innerAudioContext类中的obeyMuteSwitch设置为false,当ios微信用户开启静音(音量开关拨片)时,音频声音消失。

重现步骤

  1. audioCtx = uni.createInnerAudioContext()
    
  2. audioCtx.obeyMuteSwitch = false
  3. 当拨动音量拨片到静音位置时,音频会声音静音。

期望行为

应该声音继续播放;

实际行为

声音会静音;
拨回则又回来了。

截图或录屏

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions