Two camera streams
-
lunes, 30 de abril de 2012 7:40
I'm writing a Metro application that uses the camera extensively. When a user lunches the application for the first time, he is guided through a setup page where the application, among different settings, asks to choose favorite camera, in case the device is equipped with more than one.
Now, when I was designing the camera selection page, I thought about showing a grid where each camera will have a small tile with it's current stream rendered to CaptureElement (through MediaCapture) and that would make it much easier for the user to immediately chose the camera he wants, rather than displaying camera's cryptic model name, or having one camera preview per page.
I ran into a problem while trying to do that. Only one stream is rendered at a time dispite having two different CaptureElements and two different MediaCapture objects initialized to two different camera device ids.
Is this a known limitation of Windows 8 Metro Apps? or I'm missing something?
Thanks!
(Hardware: Samsung Series 7 Tablet)- Editado Karim AMicrosoft Employee lunes, 30 de abril de 2012 9:07
Todas las respuestas
-
martes, 01 de mayo de 2012 2:31ModeradorHello,
Thanks for your feedback, I will involve more experts to investigate it.
Best regards,
JesseJesse Jiang [MSFT]
MSDN Community Support | Feedback to us
-
martes, 01 de mayo de 2012 23:41Moderador
Hello Karim,
This is a know limitation of the Windows 8 CP. There is a request in place to allow multiple cameras run in the same application but I honestly don't know if we will see this functionality when the final product ships. I would recommend that you try instantiating each instance one at a time, taking a picture and then deleting the instance before creating the second instance. While I'm not 100% sure that this will work, given what I know about the MC architecture as long as the instance goes away before the second instance is created you should be fine.
I hope this helps,
James
Windows Media SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/
- Propuesto como respuesta James Dailey - MSFTMicrosoft Employee, Moderator martes, 01 de mayo de 2012 23:41
- Marcado como respuesta Karim AMicrosoft Employee miércoles, 02 de mayo de 2012 3:20
-
lunes, 14 de mayo de 2012 23:31Moderador
Hello Karim,
I just wanted to follow up with you on this. If you see this issue occur when the next version of Windows 8 ships please respond to this thread. I am trying to keep track of numerous reports like yours.
Thanks,
James
Windows Media SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

