Iphone simulator and webcam

后端 未结 4 829
南旧
南旧 2021-02-19 04:35

Can we make able the iphone simulator to capture an image via webcam, I\'ve written a program to take image from iphone camera. Can i test this with the iphone simulator??? Pls

4条回答
  •  失恋的感觉
    2021-02-19 04:42

    (Sorry for my english)

    In android world, the phone emulator don't have a live camera preview so the solution is create a "Webcam Server" running on emulator host (PC/Mac). This program is a socket server to capture frames from the built-in Webcam and transmit them using a socket.

    Then in the phone code (android emulator) you can read the frame through socket and then shows and simulate a real phone camera.

    Is that posible in iPhone simulator?

提交回复
热议问题