plyr icon indicating copy to clipboard operation
plyr copied to clipboard

iOS/iPhone 15.2.1 reports navigator.platform as MacIntel

Open mannyveloso opened this issue 3 years ago • 2 comments

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 navigator Navigator

mannyveloso avatar Jan 21 '22 03:01 mannyveloso

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.

mannyveloso avatar Jan 21 '22 17:01 mannyveloso

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).

erikt9 avatar May 04 '22 19:05 erikt9