Managed to capture some video frames from a Webcam...
# kotlin-native
n
Managed to capture some video frames from a Webcam, and save them as image files ( https://gitlab.com/-/snippets/2092693 - works with the linuxX64 target; should also work with the Linux ARM targets with some minor modifications) after going through a mammoth C sample program where everything is dumped into the main function 😱, and translating it to Kotlin 🎉. Using the Video4Linux API for video capture which isn't covered by Kotlin Native's Linux platform libraries for some reason; had to manually include the library via a def file:
Copy code
headers = linux/videodev2.h
👏 2
👏🏼 1