xgplayer icon indicating copy to clipboard operation
xgplayer copied to clipboard

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

Open Smallcarve opened this issue 1 year ago • 5 comments

您使用的西瓜播放器版本是多少? 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 avatar May 15 '24 02:05 Smallcarve

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

gemxx avatar May 15 '24 06:05 gemxx

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

ios 16.1

Smallcarve avatar May 15 '24 09:05 Smallcarve

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

gemxx avatar May 20 '24 03:05 gemxx

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

yutao721 avatar May 20 '24 09:05 yutao721

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Aug 19 '24 10:08 github-actions[bot]

This issue has been automatically closed after a period of inactivity. If it is still present in the latest release, please create a new issue with up-to-date information. Thank you!

github-actions[bot] avatar Sep 19 '24 10:09 github-actions[bot]