pedroSG94/RootEncoder

How to zoom in rtspcamera2?

Closed this issue · 5 comments

-How to zoom in rtspcamera2? or just switch to rtmp instead?
-What should I use?, RTMP or RTSP better?
-Thanks!

ảnh
Hmm... MotionEvents?

And RTSP stream kinda slow (even in lan network 😵‍💫), kinda glitch and slow, am i wrong at config?
ảnh

Hello,

For zoom you can use the method you shared if you want implement zoom using gestures or use zetZoom, getZoom and getZoomRange methods to set manually zoom values as you want.

About RTMP and RTSP. You can use anyone of that protocols, they are similar but RTSP support more codecs and allow use UDP sockets which should be better for latency.

About you configuration, I don't understand it.
The configuration is provided in prepareVideo and prepareAudio methods

  • setVideoBitrateOnFly is used to modify video bitrate while streaming/recording, this is normally used to avoid network congestion in weak network enviroments and could affect the quality for that reason.
  • setLimitFpsOnFly is similar but it is not recommended because could produce problems in the quality because could modify the keyframe interval.

Thanks

Close this issuse pls:)