-
-
Notifications
You must be signed in to change notification settings - Fork 340
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
[Resolved] enumerateDevices index order is reversed #392
Comments
log from 5.0.1, you can see the difference |
The change that cause the "issue" is the following: 558fcf3#diff-5a0cc8b323d62f1b113d553a63024544 But technically nowhere in WebRTC Spec it claim that front camera should be first in Now, because it look like you are not the only one with that problem, I have made a fix in order to restore the original order of 5.0.1 by putting Note: We should add |
Note: Will leave that issue open until 5.0.4 release to avoid duplicate reports and let the community know about the issue. |
You are right, there is no such spec. I was using indexes, because on Android the labels are empty (Samsung Galaxy S9) when I call enumerateDevices, so I could not filter by any info, hence I relied on indexes being the same (using reverseArray on android to get the desired camera always on index 0). |
Hi All, Have you already added the MediaStreamTrack.getCapabilities() feature? If not yet, have you any release date please? |
In 5.0.1 the result of video devices from calling enumerateDevices was 0 for back camera and 1 for front camera.
In 5.0.3 (I skipped/did not test with 5.0.2) these indexes got reversed.
Is this on purpose, or an unwanted side effect?
From the logs it seems that first the indexes are correct (
iosrtcPlugin#enumerateDevices()
), then in the log ofosrtc:enumerateDevices getMediaDeviceInfos()
they are reversed.5.0.3
12.4.1
10.3(10G8)
Logs attached
iosrtc_enumerateDevices_5.0.3.txt
The text was updated successfully, but these errors were encountered: