Created
January 20, 2016 14:19
-
-
Save gtk2k/1be899f4450340bb7b19 to your computer and use it in GitHub Desktop.
getUserMediaのconstraintsに設定する拡張キー(goog~)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ( | |
MinAspectRatioConstraint = MediaConstraintKey("minAspectRatio") | |
MaxAspectRatioConstraint = MediaConstraintKey("maxAspectRatio") | |
MaxWidthConstraint = MediaConstraintKey("maxWidth") | |
MinWidthConstraint = MediaConstraintKey("minWidth") | |
MaxHeightConstraint = MediaConstraintKey("maxHeight") | |
MinHeightConstraint = MediaConstraintKey("minHeight") | |
MaxFrameRateConstraint = MediaConstraintKey("maxFrameRate") | |
MinFrameRateConstraint = MediaConstraintKey("minFrameRate") | |
// Constraint keys used by a local audio source. | |
// These keys are google specific. | |
EchoCancellationConstraint = MediaConstraintKey("googEchoCancellation") | |
ExperimentalEchoCancellationConstraint = MediaConstraintKey("googEchoCancellation2") | |
AutoGainControlConstraint = MediaConstraintKey("googAutoGainControl") | |
ExperimentalAutoGainControlConstraint = MediaConstraintKey("googAutoGainControl2") | |
NoiseSuppressionConstraint = MediaConstraintKey("googNoiseSuppression") | |
ExperimentalNoiseSuppressionConstraint = MediaConstraintKey("googNoiseSuppression2") | |
HighpassFilterConstraint = MediaConstraintKey("googHighpassFilter") | |
TypingNoiseDetectionConstraint = MediaConstraintKey("googTypingNoiseDetection") | |
AudioMirroringConstraint = MediaConstraintKey("googAudioMirroring") | |
// Google-specific constraint keys for a local video source | |
NoiseReductionConstraint = MediaConstraintKey("googNoiseReduction") | |
LeakyBucketConstraint = MediaConstraintKey("googLeakyBucket") | |
TemporalLayeredScreencastConstraint = MediaConstraintKey("googTemporalLayeredScreencast") | |
// Constraint keys for CreateOffer / CreateAnswer | |
// Specified by the W3C PeerConnection spec | |
OfferToReceiveVideoConstraint = MediaConstraintKey("OfferToReceiveVideo") | |
OfferToReceiveAudioConstraint = MediaConstraintKey("OfferToReceiveAudio") | |
VoiceActivityDetectionConstraint = MediaConstraintKey("VoiceActivityDetection") | |
IceRestartConstraint = MediaConstraintKey("IceRestart") | |
// These keys are google specific. | |
UseRtpMuxConstraint = MediaConstraintKey("googUseRtpMUX") | |
// PeerConnection constraint keys. | |
// Temporary pseudo-constraints used to enable DTLS-SRTP | |
EnableDtlsSrtpConstraint = MediaConstraintKey("DtlsSrtpKeyAgreement") | |
// Temporary pseudo-constraints used to enable DataChannels | |
EnableRtpDataChannelsConstraint = MediaConstraintKey("RtpDataChannels") | |
// Google-specific constraint keys. | |
// Temporary pseudo-constraint for enabling DSCP through JS. | |
EnableDscpConstraint = MediaConstraintKey("googDscp") | |
// Constraint to enable IPv6 through JS. | |
EnableIPv6Constraint = MediaConstraintKey("googIPv6") | |
// Temporary constraint to enable suspend below min bitrate feature. | |
EnableVideoSuspendBelowMinBitrateConstraint = MediaConstraintKey("googSuspendBelowMinBitrate") | |
ImprovedWifiBweConstraint = MediaConstraintKey("googImprovedWifiBwe") | |
ScreencastMinBitrateConstraint = MediaConstraintKey("googScreencastMinBitrate") | |
SkipEncodingUnusedStreamsConstraint = MediaConstraintKey("googSkipEncodingUnusedStreams") | |
CpuOveruseDetectionConstraint = MediaConstraintKey("googCpuOveruseDetection") | |
CpuUnderuseThresholdConstraint = MediaConstraintKey("googCpuUnderuseThreshold") | |
CpuOveruseThresholdConstraint = MediaConstraintKey("googCpuOveruseThreshold") | |
CpuOveruseEncodeUsageConstraint = MediaConstraintKey("googCpuOveruseEncodeUsage") | |
HighStartBitrateConstraint = MediaConstraintKey("googHighStartBitrate") | |
HighBitrateConstraint = MediaConstraintKey("googHighBitrate") | |
VeryHighBitrateConstraint = MediaConstraintKey("googVeryHighBitrate") | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment