8000 请问播放器在IOS手机上,音量调节不可滑动。清晰度设置在手机为啥不显示?浏览器显示自动,可切换清晰度,手机不显示直接不显示,如何手机横屏显示呢? · Issue #555 · oyuyue/nplayer · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

请问播放器在IOS手机上,音量调节不可滑动。清晰度设置在手机为啥不显示?浏览器显示自动,可切换清晰度,手机不显示直接不显示,如何手机横屏显示呢? #555

New issue

Have a 8000 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

Open
jm821323 opened this issue May 23, 2022 · 11 comments

Comments

@jm821323
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@jm821323 jm821323 changed the title 请问播放器在IOS手机上,音量调节不可滑动。清晰度设置在手机为啥不显示?如何手机横屏显示呢? 请问播放器在IOS手机上,音量调节不可滑动。清晰度设置在手机为啥不显示?浏览器显示自动,可切换清晰度,手机不显示直接不显示,如何手机横屏显示呢? May 23, 2022
@oyuyue
Copy link
Owner
oyuyue commented May 23, 2022

IOS 上需要通过系统来调节音量,不能通过播放器调节音量。播放器布局是响应式的,你可以精准控制播放器在不同大小的时候的布局,例如在手机大小隐藏 音量控制,横屏大小显示 清晰度调节,可以参考这个章节 https://nplayer.js.org/docs/responsive

@jm821323
Copy link
Author

IOS 上需要通过系统来调节音量,不能通过播放器调节音量。播放器布局是响应式的,你可以精准控制播放器在不同大小的时候的布局,例如在手机大小隐藏 音量控制,横屏大小显示 清晰度调节,可以参考这个章节 https://nplayer.js.org/docs/responsive

感谢大佬回复。我的意思是手机横屏和手机竖屏怎么处理,没有看到对应的api。我目前正在采用您这款播放器开发一个直播软件,想请教您一下,之前也没有太多了解过音视频,谢谢

@oyuyue
Copy link
Owner
oyuyue commented May 24, 2022

如果 window.innerHeight > window.innerWidth 就表示当前是横屏,当然也可以访问 screen.orientation。竖屏一个布局横屏一个布局是通过播放器在不同宽度下应用不同的布局。例如竖屏 300px,给 300px 断点设置一个布局,横屏 600px, 给 600px 设置一个布局。响应式布局是播放器在不同宽度下应用什么布局,这个都是可以自定义的。

@jm821323
Copy link
Author

好的,谢谢大佬

@jm821323
Copy link
Author

大佬有个问题再请教您一下,不知是我开发的原因还是播放器bug,横屏以后播放按钮失效,弹窗设置拖拉字体从小到大,透明度,显示区域等,不灵敏

@oyuyue
Copy link
Owner
oyuyue commented May 25, 2022

是只有横屏才有这个问题吗?是不是页面没有禁用缩放,滑动进度条和滚动页面冲突了

@jm821323
Copy link
Author

只有横屏,播放按钮不管用,而且弹幕会满屏,我可以加您个联系方式发个视频吗?

@jm821323
Copy link
Author

IOS下采用hls清晰度设置,chrome偶尔会播放不出来,偶现。苹果手机一直加载不出来视频。报这个错,The operation was aborted,也查了相应资料。由于在播放时资源未加载完毕,在执行 play 后的等待时间内,调用了 pause 方法导致的,设置了延迟和catch捕获也不行,不知道大佬知道怎么解决吗?

@oyuyue
Copy link
Owner
oyuyue commented May 26, 2022

可以的,我微信 wopena

@oyuyue
Copy link
Owner
oyuyue commented May 26, 2022

IOS下采用hls清晰度设置,chrome偶尔会播放不出来,偶现。苹果手机一直加载不出来视频。报这个错,The operation was aborted,也查了相应资料。由于在播放时资源未加载完毕,在执行 play 后的等待时间内,调用了 pause 方法导致的,设置了延迟和catch捕获也不行,不知道大佬知道怎么解决吗?

IOS 是原生支持 HLS 的,可以看看是不是 HLS 流有问题

69EE
@acegank
Copy link
acegank commented Jun 16, 2022

@woopen 使用hls.js 在ios上无法播放

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
0