Skip to content

Commit

Permalink
appears to be constraint mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-raymond committed Sep 21, 2018
1 parent 2f301ef commit 19b7eaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion org/webrtc/wrapper/Media.cc
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ namespace Org {
constraints.SetMandatory(webrtc::MediaConstraintsInterface::kMinHeight, globals::gPreferredVideoCaptureFormat.height);
constraints.SetMandatory(webrtc::MediaConstraintsInterface::kMaxWidth, globals::gPreferredVideoCaptureFormat.width);
constraints.SetMandatory(webrtc::MediaConstraintsInterface::kMaxHeight, globals::gPreferredVideoCaptureFormat.height);
constraints.SetMandatoryMaxFrameRate(cricket::VideoFormat::IntervalToFps(globals::gPreferredVideoCaptureFormat.height));
constraints.SetMandatoryMaxFrameRate(cricket::VideoFormat::IntervalToFps(globals::gPreferredVideoCaptureFormat.interval));

RTC_LOG(LS_INFO) << "Creating video track.";
rtc::scoped_refptr<webrtc::VideoTrackInterface> video_track(
Expand Down

0 comments on commit 19b7eaf

Please sign in to comment.