Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How I can take screenshot of WebRTC View? #7

Open
osnaz1939 opened this issue Dec 28, 2015 · 1 comment
Open

How I can take screenshot of WebRTC View? #7

osnaz1939 opened this issue Dec 28, 2015 · 1 comment

Comments

@osnaz1939
Copy link

I used this library in here : http://mvnrepository.com/artifact/io.pristine/libjingle/9944
and use the gl.glReadPixels(x, 0, w, y+h, GL10.GL_RGBA, GL10.GL_UNSIGNED_BYTE, intBuffer);
method in my Activity,but returned bmp is black(perhaps because not completely worked method OnDraw).And I do not can extended my custom class from VideoRendererGui class,and redefine OnDraw method.
update: I am use old example https://libjingle.googlecode.com/svn-history/r287/trunk/talk/examples/android/ but in my version libjingle(9944) does not exist the "deepcopy" method in I420Frame
and my View is green,and after 5-10 seconds appears "Camera failure" error.
Can you help me?

@pulimento
Copy link

If you use a SurfaceViewRenderer to render your video stream, you can use surfaceViewRenderer.addFrameListener, to attach a listener. Then, you will have a callback with a bitmap of each frame

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants