Click here to Skip to main content
15,885,537 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
If i have more than one camera, how can i choose one of them? I'm launching my application on a tablet with windows 7. The program take the front camera, but i need to use the rear camera. I'm using ozeki camera sdk.
Posted
Updated 22-Jun-15 22:54pm
v4
Comments
Abhishek Pant 23-Jun-15 4:34am    
Please explain your scenario
Further as when you open up camera with the application it ask to choose the camera and microphone.
if you want to handle it manually please see-Use Multiple Cameras in one application[^]
Suvendu Shekhar Giri 23-Jun-15 4:34am    
Try posting little more about the API you have used and it would be great if we can see what you have tried so far, possibly some code. Is that make sense to you?
Kornfeld Eliyahu Peter 23-Jun-15 5:05am    
What about the documentation comes with the SDK?

1 solution

This link should help you - How To Get Access to Front & Back Camera in Windows 8.1 Store App[^].

The whole idea would be to enumerate through the device information object and get the appropriate cameras.
SQL
DeviceInformation frontWebcam = (from webcam in webcamList
 where webcam.EnclosureLocation != null
 && webcam.EnclosureLocation.Panel == Windows.Devices.Enumeration.Panel.Front
 select webcam).FirstOrDefault();
 
Share this answer
 
Comments
Member 11783574 23-Jun-15 5:18am    
I'm using windows 7 and the minimum requirements for use Windows.Devices.Enumeration is Windows 8

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900