title: Simulating an Android Camera
body: <p>I am testing imaging algorithms using a android phone's camera as input, and need a way to consistently test the algorithms. Ideally I want to take a pre-recorded video feed and have the phone 'pretend' that the video feed is a live video from the camera.</p>
  
  <p>My ideal solution would be where the app running the algorithms has no knowledge that the video is pre-recorded. I do not want to load the video file directly into the app, but rather read it in as sensor data if at all possible.</p>
  
  <p>Is this approach possible? If so, any pointers in the right direction would be extremely helpful, as Google searches have failed me so far</p>
  
  <p>Thanks!</p>
  
  <p>Edit: To clarify, my understanding is that the Camera class uses a camera service to read video from the hardware. Rather than do something application-side, I would like to create a custom camera service that reads from a video file instead of the hardware. Is that doable?</p>