stream-video-flutter
stream-video-flutter copied to clipboard
Call type detection
I want to detect weather the incoming call is audio or video, I want to identify the type of call before picking the call. There is a variable callType printed that variable but it contains call id so i am unable to identify the type of call. Can anybody tell me how can I do it?
Hey @Usamait13, where exactly do you want to identify the type of the call? Usually, you should have access to callCid
, which is composed of call type and ID. You can easily parse it using the StreamCallCid
class:
final streamCallCid = StreamCallCid(cid: call.cid);
final callType = streamCallCid.type;
Does that help?
Closing the issue due to inactivity. Please reopen if needed.