How to know when a user starts and end its livestream