code for video chat application