prototype for recording videos in nimbb