Call Duration

Hello!

There is an way to receive back from hooks or from API the duration of a CALL / ROOM?

For example, Room A is started at: 12:00:00 and Room A is closed at: 12:35:00 -> Duration of this room: 35 minuts.
 

Max

Administrator
Staff member
Good day.
There is an way to receive back from hooks or from API the duration of a CALL / ROOM?
For example, Room A is started at: 12:00:00 and Room A is closed at: 12:35:00 -> Duration of this room: 35 minuts
You can use REST hooks /publishStream and /unPublishStream (and /StreamStatusEvent) to detect the moment of stream publishing/stopping. So< you can calculate the room (mixer) stream duration.
If, however, you create a mixer with very longidle timeout, you should use the same REST hooks for all the participants streams. When first participant (user1#room1 for example) publishes its stream to the mixer, the call is started. When the last participant unpublishes its stream, the call is finished.
 
Top