A series of functional helpers for applying transforms to media capture constraints.
var tweak = ;var getUserMedia = ;var streamui = ;var chain = ;// create a limiter functionvar adjustDimensions = ;// generate constraints with limited frame capture ratevar constraints = ;console;// capture media;
Apply appropriate maxwidth constraints.
Apply appropriate minwidth constraints.
Apply both minwidth and maxwidth constraints.
Apply appropriate maxheight constraints.
Apply appropriate minheight constraints.
Apply both minheight and maxheight constraints.
Apply appropriate max framerate constraints.
Apply appropriate min framerate constraints.
Apply both min and max framerate constraints.
Copyright 2014 Damon Oehlman email@example.com
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.