Hi. your example doesnt record a actual video footage but instead only takes an image.
Do you know how to record in video?
it seems it cannot be done currently in Android things due to information provided here:
https://stackoverflow.com/questions/47582970/android-video-recorder-failed-to-get-surface?noredirect=1#comment83955853_47582970