I think this problem happens because Ant Media Server Community Edition resizes the incoming video to 640x480. The origin video's resolution is likely 16:9 so that you see a stretching in the video.
I think you can set the resolution to something 4:3 in Android SDK because community edition uses 640x480 for converting WebRTC stream. Try the followings before you initialize webRTCClient = new WebRTCClient( this,this);
in onCreate
method
this.getIntent().putExtra(EXTRA_VIDEO_WIDTH, 640);
this.getIntent().putExtra(EXTRA_VIDEO_HEIGHT, 480);
Update:
There is an aspect ratio problem in community edition while publishing from Mobile App. The issue is created for that. https://github.com/ant-media/Ant-Media-Server/issues/2492
Fortunately, commits are also pushed to resolve this problem. It'll be available as SNAPSHOT soon and will be available in next release.
SNAPSHOTs are here -> https://oss.sonatype.org/#nexus-search;gav~io.antmedia~ant-media-server~~~~kw,versionexpand