android - Getting SurfaceTexture pixels fast or trick with TextArea -
i have qt realtime broadcasting chat application android (v 4.1, api 16), sends h.264/aac chunks rtmp server.
for now, application uses surfaceview
capturing frames camera
, in onpreviewframe
function encode frames h.264 chunks , in other thread
create rtmp chunks, sending rtmp server, wrote above.
background transparent (with qt::windowstaysontophint
flag) , qml ui draws above camera
's surfaceview
- works pretty well, without lags , other. but, when tried use qml's textarea
(for writing chat messages), above surfaceview
, there long delays on devices (and not on samsung's) when press on key on android's virtual keyboard, did app absolutely unusable. example, type "lag" on keyboard, , there 3-4 second delay between showing every symbol in textarea
))): surfaceview
, broadcast works without lags.
so, dear developers, shall solve problem?
for now, moved camera
's preview surfacetexture
, draw using qt's qsggeometrynode
, there problem: how read pixels surfacetexture
more efficient? possible make performance faster or similar onpreviewframe
? may moving in wrong direction , can trick textarea
?
thanks!
Comments
Post a Comment