How to zoom in rtspcamera2?
Closed this issue · 5 comments
Roseclear commented
-How to zoom in rtspcamera2? or just switch to rtmp instead?
-What should I use?, RTMP or RTSP better?
-Thanks!
Roseclear commented
Roseclear commented
pedroSG94 commented
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.
Roseclear commented
Thanks
Roseclear commented
Close this issuse pls:)