Hi,
What do you mean by 'inactive in your app but chatting via video or text'?
As such for AFCS component level we don't test inactivity.
But you may do one thing for e.g., lets say you are using chat and note component, then you can override the function where you publish an Item for chat or note, for e.g. in chat it is sendNewMessage() function , and there based on the inactivity timer you can throw an event at the end of duration if its active( i.e. sent any message) in that duration. If you don't get any events from any component in your app, then you can presume the user is inactive.
Hope this helps.
Thanks
Hironmay Basu