natario1/Egloo

Use VirtualDisplay as texture source, seems only render the topleft point of the display

BennyWang opened this issue · 1 comments

In my project, I want render a virtual display use opengl and then encode to H264 stream, I change some code of VideoActivity
infoflow 2020-09-02 20-07-10
infoflow 2020-09-02 20-07-27
Instead pass surface to VideoPlay, I use it to create VirtualDisplay, then show a simple Presentation on it.
infoflow 2020-09-02 20-12-56
infoflow 2020-09-02 20-19-03
The third picture is the layout of my presentation, on top left, I have 1dp x 1dp ImageView with background color #ffff00.
the forth picture is actual render result, It seems it just render top left point of my layout, other part of my layout does't show up.
I'm new to opengl, I google this problem and found nothing.
Please help me! thanks.

fixed by call setDefaultBufferSize