How to record colorframe by astra sdk

Hello I’m trying to process colorframe which retrieved by astra sdk using opencv library, and it works well in real time excepts frame issues. Therefore I want to record the data by astra sdk however i cannot find where is the api. Is there anyone who can help me recording frame by using sdk?

Thanks in advance