RootEncoder icon indicating copy to clipboard operation
RootEncoder copied to clipboard

Streaming TextureView

Open hogantan opened this issue 3 years ago • 1 comments

Is it possible to stream a specific TextureView/SurfaceView rather than streaming my entire display?

I am not sure where to start. Can someone point me in some direction? Thanks!

hogantan avatar May 09 '22 18:05 hogantan

Hello,

Without modify the library it is not posible. I'm not sure if it is working but you can stream an android view using AndroidViewFilterRender (You can stream display and set this filter with full size using setSize(100,100)). I recommend you test it but maybe it is not working because SurfaceView and TextureView are specials views and get frames using canvas not always work for it.

If you want stream SurfaceView or TextureView you need a proper way to extract frames from it and render another Surface (VideoEncoder inputSurface) with that frames but depend of the way you are doing it it is not always possible.

pedroSG94 avatar May 12 '22 18:05 pedroSG94