Bug 1919160 - Stop reporting facingMode on mac laptops and desktops;r=jib

Differential Revision: https://phabricator.services.mozilla.com/D228218
This commit is contained in:
Dan Baker 2024-11-07 19:22:27 +00:00
parent c83e2b8135
commit 01b0d17aa1

View File

@ -68,12 +68,6 @@ static Maybe<VideoFacingModeEnum> GetFacingMode(const nsString& aDeviceName) {
return Some(VideoFacingModeEnum::User);
}
#endif // ANDROID
#ifdef XP_MACOSX
// Kludge to test user-facing cameras on OSX.
if (aDeviceName.Find(u"Face"_ns) != -1) {
return Some(VideoFacingModeEnum::User);
}
#endif
#ifdef XP_WIN
// The cameras' name of Surface book are "Microsoft Camera Front" and
// "Microsoft Camera Rear" respectively.