Lib changes

* Force it to use MediaCodec API 2
* Use dummy surface view in server side to avoid freezing
* Commented unused method that introduced errors after merging PRs
* Commented method measureFramerate call to avoid bug with framerate (if we use this method, the framerate parameter is ignored)
Can we add a little comment here explaining why we did this, so that we can remember later?
Something like: "disabled to avoid changing the desired encoding framerate"