Allow Android apps to set video renderer scaling type.
Also add type check for EGL context object received from apps and switch to byte buffer video decoding if EGL context is incorrect BUG=3851 R=tkchin@webrtc.org Review URL: https://webrtc-codereview.appspot.com/25669004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7326 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -113,8 +113,10 @@ public class AppRTCDemoActivity extends Activity
|
||||
|
||||
vsv = new AppRTCGLView(this, displaySize);
|
||||
VideoRendererGui.setView(vsv);
|
||||
remoteRender = VideoRendererGui.create(0, 0, 100, 100);
|
||||
localRender = VideoRendererGui.create(70, 5, 25, 25);
|
||||
remoteRender = VideoRendererGui.create(0, 0, 100, 100,
|
||||
VideoRendererGui.ScalingType.SCALE_ASPECT_FIT);
|
||||
localRender = VideoRendererGui.create(70, 5, 25, 25,
|
||||
VideoRendererGui.ScalingType.SCALE_ASPECT_FIT);
|
||||
|
||||
vsv.setOnClickListener(new View.OnClickListener() {
|
||||
@Override public void onClick(View v) {
|
||||
|
||||
Reference in New Issue
Block a user