webrtc vars refactoring