Changes to avoid webrtc api deprecated methods. fixes: #25