Skip to content
New issue

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

AppleCoreMedia user agent on iPhone and iPad devices is not recognized as iOS device when the client is requesting html5 video data #620

Closed
akosphp opened this issue Jan 1, 2017 · 2 comments

Comments

@akosphp
Copy link

akosphp commented Jan 1, 2017

The following user agent string (just an example from the many) is not recognized as an iOS device ($detect->isiOS() returns false) when playing html5 video on an iPad or iPhone:

AppleCoreMedia/1.0.0.11D201 (iPhone; U; CPU OS 7_1_1 like Mac OS X; hu_hu)

On Apple mobile devices the html5 video playback is not running inside the browser instead opened by AppleCoreMedia and therefore the user agent string is not the same as in Safari during a regular html request.

And it would be nice to have a method like isAppleCoreMedia() to detect Apple media player too.

@serbanghita serbanghita self-assigned this Dec 10, 2017
@serbanghita serbanghita added this to the 2.8.30 milestone Dec 10, 2017
serbanghita added a commit that referenced this issue Dec 10, 2017
…d as iOS device when the client is requesting html5 video data (#620)
@serbanghita
Copy link
Owner

Fixed in https://github.com/serbanghita/Mobile-Detect/releases/tag/2.8.30 thanks for reporting! Please check if this is still of interest for you!

@da2x
Copy link

da2x commented Aug 4, 2018

The fix in commit 581af2b is wrong. AppleCoreMedia is also used on macOS so don’t assume it’s iOS.

macOS: AppleCoreMedia/1.0.0.18A347e (Macintosh; U; Intel Mac OS X 10_14; en_us)

iOS: AppleCoreMedia/1.0.0.11D201 (iPhone; U; CPU OS 7_1_1 like Mac OS X; en_us)

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

No branches or pull requests

3 participants