For our current project, we need a video chat application that tracks the duration of these video conferences.
Each conversation also has a limited time, after which the chat ends.
I have already created the base module, but I have problems with this timer. There are always 2 streams in the WOWZA 1-to-1 Video Chat application:
User1 publishes a stream that User2 plays (subscribes)
User2 publishes the stream that User1 plays (subscribes)
A limited amount of time is stored (until chat) in the database.
Now, what is the best way to reduce this amount?
I cannot do this in a StreamListener, because there are always two streams, and it will be halved.
Maybe some singleton?
Thanks!
nahri source share