xgplayer icon indicating copy to clipboard operation
xgplayer copied to clipboard

iOS26在使用xgplayer-hls.js插件后 无法显示投屏(airplay)按钮 不添加插件是可以的

Open litaoyu opened this issue 3 weeks ago • 1 comments

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

3.0.23

您使用的操作系统和浏览器分别是? What OS and browser are you using? iOS26系统 Safari浏览器 iOS26之前的系统是可以正常显示的

如何复现问题? How to reproduce the problem?

new Player({
  id: 'player',
  
  url: videoObj.playUrl,
  width: window.screen.width,
  height: window.screen.width * 245 / 430,

// plugins: [Danmu], //可以正常显示 plugins: [Danmu,HlsPlugin], //无法正常显示 autoplay: true,

});

您期望的播放器正常行为是? What did you expect to happen? 正常显示 投屏(airplay)按钮

实际播放器的表现是? What actually happened? iOS26 无法正常显示 投屏(airplay)按钮

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

litaoyu avatar Dec 04 '25 02:12 litaoyu

@litaoyu MMS and MSE与Airplay是不兼容的。官方推荐的解法是通过多source,在Airplay的时候降级到备用的源上。我们会在后续版本调研一下实现方案 https://webkit.org/blog/15036/how-to-use-media-source-extensions-with-airplay/

Image

gemxx avatar Dec 10 '25 05:12 gemxx