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

苹果手机在微信内置浏览器打开h5后播放器音量设置未生效 #1436

Open
Smallcarve opened this issue May 15, 2024 · 4 comments
Labels
ios mobile Player run in iOS or Android webview

Comments

@Smallcarve
Copy link

您使用的西瓜播放器版本是多少? What version of xgplayer are you using?
3.0.11

您使用的操作系统和浏览器分别是? What OS and browser are you using?
ios,微信内置浏览器

如何复现问题? How to reproduce the problem?
用微信打开h5链接

您期望的播放器正常行为是? What did you expect to happen?
代码中配置播放器静音,播放时静音

实际播放器的表现是? What actually happened?
代码中配置播放器静音,播放时仍有声音

可填写您所在的公司和相关产品业务,方便我们提供更好的技术支持 You can write your company and product which uses xgplayer, for helping us provide better technical support.

@Smallcarve Smallcarve changed the title 苹果手机在微信页面通过h5打开后播放器音量设置未生效 苹果手机在微信内置浏览器打开h5后播放器音量设置未生效 May 15, 2024
@gemxx
Copy link
Collaborator

gemxx commented May 15, 2024

@Smallcarve 提供一下你的播放器配置,以及iOS的版本

@gemxx gemxx added ios mobile Player run in iOS or Android webview labels May 15, 2024
@Smallcarve
Copy link
Author

player = new Player({
  id,
  url,
  autoplay,
  volume: 0,
  height: "95%",
  width: '95%',
  controls: {
    root: document.getElementById('controls_new_root'), // 指定播放器之外挂载dom
  },
});

ios 16.1

@gemxx
Copy link
Collaborator

gemxx commented May 20, 2024

@Smallcarve iOS 无法通过程序调整声音,你试试配置 muted: true 或者 defaultMuted: true,看看能否解决你的问题
https://h5player.bytedance.com/api/#muted

@yutao721
Copy link

也遇到同样的问题,播放音频 ios端微信浏览器没有声音

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ios mobile Player run in iOS or Android webview
Projects
None yet
Development

No branches or pull requests

3 participants