techyian / MMALSharp

C# wrapper to Broadcom's MMAL with an API to the Raspberry Pi camera.
MIT License
195 stars 33 forks source link

Is there any way to open the camera indefinitely? #76

Closed jjsoares90 closed 5 years ago

jjsoares90 commented 5 years ago

Hello,

All the examples involving video terminate the video after a set amount of time. Is there a way to leave the camera open (e.g. for RTMP streaming) indefinitely?

Thanks,

Jesse

techyian commented 5 years ago

Hi Jesse,

If you don't pass in a cancellation token to the ProcessAsync method it should leave the video running indefinitely. Let me know if that solves your issue.

Thanks, Ian