plyr
plyr copied to clipboard
iOS/iPhone 15.2.1 reports navigator.platform as MacIntel
Expected behaviour
plyr correctly determines if it's running on iPhone/iOS 15.2.1
Actual behaviour
plyr doesn't realize it's using the iPhone/iOS
Steps to reproduce
call browser.isIPhone on an iPhone running iOS 15.2.1
Environment
- Browser: Safari
- Version: 15.2.1
- Operating System:15.2.1
- Version:15.2.1
Console errors (if any)
Link to where the bug is happening
browser.js

As a note, hls.js detects an iPhone because it's missing the MediaSource extensions. iPad/iOS and MacOS both support MediaSource, making it a convenient way of determining the platform.
Just noting that the iPhone only identifies itself as MacOS if the user has requested the desktop version of the website and browser.isIos still works in this mode (although it can't differentiate from iPads).