Sorry about that, i missed this piece of code when i moved my code from webrtc-code-review to github. It was present in the code in webrtc-codereview and i had tested it had worked before :).