stream-video-flutter icon indicating copy to clipboard operation
stream-video-flutter copied to clipboard

Call type detection

Open Usamait13 opened this issue 10 months ago • 1 comments

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?

Usamait13 avatar Apr 09 '24 19:04 Usamait13

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?

Brazol avatar Apr 10 '24 08:04 Brazol

Closing the issue due to inactivity. Please reopen if needed.

Brazol avatar May 13 '24 11:05 Brazol