MIN_VIDEO_FPS_CONSTRAINT, Integer.toString(MIN_VIDEO_FPS))); // this will set the min fps send to the other side
videoConstraints.mandatory.add(new MediaConstraints.KeyValuePair(
MAX_VIDEO_FPS_CONSTRAINT, Integer.toString(MAX_VIDEO_FPS))); // this will set the min fps send to the other side
But while we update our code to branch to 56, video source is created like this :peerConnectionFactory.createVideoSource(capture).
so how can we constraint video source like what we have done in branch 50? please help .
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/e0e50192-1cb1-4541-b0a2-3a39f99f6522%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
In the new API, you have to call startCapture manually. You specify the resolution and fps when calling this method.
On Thu, Mar 30, 2017 at 9:15 AM, dc_neo <neot...@gmail.com> wrote:
hi , webrtc developers:we use webrtc for a long time , from branch 50 to branch 56.During this time , webrtc has improved lots of features, such as changing resolution of video source.In branch 50, we can create video source like this : peerConnectionFactory.createVideoSource(capture,videoConstraints), videoConstraints is derived class, its' base class is MediaConstraints. And in branch 50, we create videoConstraints with options videoConstraints.mandatory.add(new MediaConstraints.KeyValuePair(MIN_VIDEO_FPS_CONSTRAINT, Integer.toString(MIN_VIDEO_FPS))); // this will set the min fps send to the other side
videoConstraints.mandatory.add(new MediaConstraints.KeyValuePair(
MAX_VIDEO_FPS_CONSTRAINT, Integer.toString(MAX_VIDEO_FPS))); // this will set the min fps send to the other sideBut while we update our code to branch to 56, video source is created like this :peerConnectionFactory.createVideoSource(capture).so how can we constraint video source like what we have done in branch 50? please help .
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/24a640db-ad66-4d5b-84eb-e0276331465d%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/00daf6f3-cd0b-481e-87b5-eaf51556db2e%40googlegroups.com.