mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-23 04:41:54 +00:00
Bug 1144912 - WebRTC Screenshare has own default FPS r=jib
This commit is contained in:
parent
e53c6e48b7
commit
76ac0daed4
@ -207,6 +207,7 @@ int32_t ViECapturer::Start(const CaptureCapability& capture_capability) {
|
||||
int frame_rate;
|
||||
VideoCaptureCapability capability;
|
||||
requested_capability_ = capture_capability;
|
||||
CaptureDeviceType type = config_.Get<CaptureDeviceInfo>().type;
|
||||
|
||||
if (!CaptureCapabilityFixed()) {
|
||||
// Ask the observers for best size.
|
||||
@ -218,7 +219,11 @@ int32_t ViECapturer::Start(const CaptureCapability& capture_capability) {
|
||||
height = kViECaptureDefaultHeight;
|
||||
}
|
||||
if (frame_rate == 0) {
|
||||
frame_rate = kViECaptureDefaultFramerate;
|
||||
if (type == Screen || type == Window || type == Application) {
|
||||
frame_rate = kViEScreenCaptureDefaultFramerate;
|
||||
} else {
|
||||
frame_rate = kViECaptureDefaultFramerate;
|
||||
}
|
||||
}
|
||||
capability.height = height;
|
||||
capability.width = width;
|
||||
|
@ -41,6 +41,7 @@ enum { kViEMaxCaptureDevices = 256 };
|
||||
enum { kViECaptureDefaultWidth = 352 };
|
||||
enum { kViECaptureDefaultHeight = 288 };
|
||||
enum { kViECaptureDefaultFramerate = 30 };
|
||||
enum { kViEScreenCaptureDefaultFramerate = 3 };
|
||||
enum { kViECaptureMaxSnapshotWaitTimeMs = 500 };
|
||||
|
||||
// ViECodec
|
||||
|
Loading…
x
Reference in New Issue
Block a user