shiyiya / oplayer

:zap: Another HTM5 video player.
https://oplayer.vercel.app
MIT License
147 stars 19 forks source link

Qualities not showing on mobile #54

Closed casualGamer-dev closed 1 year ago

casualGamer-dev commented 1 year ago
"@oplayer/core": "^1.2.9",
"@oplayer/hls": "^1.2.6",
"@oplayer/ui": "^1.2.10",
platform : android 
Browser : chrome
casualGamer-dev commented 1 year ago

opening site from mobile doesnt not show the option to change quality u can test it out yourself https://gojo.tv

shiyiya commented 1 year ago

You can try to update to the latest version.

shiyiya commented 1 year ago

https://gojo.tv/watch/140596?episode=ijiranaide-nagatoro-san-2nd-attack-episode-2&provider=gogoanime

https://web.xn--7ov117aclgs4c.life/v/don't-toy-with-me-miss-nagatoro-2nd-attack

shiyiya commented 1 year ago

@casualGamer-dev

Maybe I have found the answer. When the browser supports the corresponding video format, the corresponding plug-in will not be loaded. For example, if iOS built-in supports playing m3u8, the hls.js will not be loaded. Now that Chrome Mobile also supports m3u8, hls.js will not be used by default, so the quality switch will also fail.

You can try to force the use of hls.js

hls({ matcher: () => true })
shiyiya commented 1 year ago

Now player.$video.canPlayType('application/x-mpegURL') returned 'maybe'.

chrome mobile 108.0.5359128

shiyiya commented 1 year ago

https://deploy-preview-4--animehi-stream.netlify.app/watch/146346?episode=cldd9jbpa000gz0pk52cecx1r&provider=gogoanime

https://github.com/benjoquilario/animehi-stream/pull/4

It's work well.