langhuihui / jessibuca

Jessibuca是一款开源的纯H5直播流播放器
https://jessibuca.com
GNU General Public License v3.0
2.17k stars 406 forks source link

webFullscreen在iOS版微信内失效。 #381

Closed dadait closed 3 months ago

dadait commented 3 months ago

webFullscreen在iOS版微信内失效,设置了useWebFullScreen:ture,但是在调用setFullscreen(true),无任何效果。

使用了官方的DEMO https://jessibuca.com/mobile-fullscreen.html测试,也是没有全屏效果。

bosscheng commented 3 months ago

ios-wechat 我c测试了下,没问题嘛

dadait commented 3 months ago

@bosscheng 抱歉,之前描述有误,iPhone 微信中没问题,只是在iPad微信中调用setFullscreen无响应。

已经找到并解决问题了,修改了下isMobile方法中的正则表达式,在其中加入了ipad

function isMobile() {
    return /iphone|ipod|android.*mobile|windows.*phone|blackberry.*mobile|ipad/i.test(window.navigator.userAgent.toLowerCase());
}
bosscheng commented 3 months ago

@dadait 新版本已经修复了