mirror of
https://github.com/samsonjs/media.git
synced 2026-04-17 13:15:47 +00:00
added maxFrameRate to the filtering done when selecting a fixed video track
This commit is contained in:
parent
4f834e7e1a
commit
4c0041f936
1 changed files with 2 additions and 1 deletions
|
|
@ -1562,7 +1562,8 @@ public class DefaultTrackSelector extends MappingTrackSelector {
|
|||
boolean isWithinConstraints = selectedTrackIndices.contains(trackIndex)
|
||||
&& (format.width == Format.NO_VALUE || format.width <= params.maxVideoWidth)
|
||||
&& (format.height == Format.NO_VALUE || format.height <= params.maxVideoHeight)
|
||||
&& (format.bitrate == Format.NO_VALUE || format.bitrate <= params.maxVideoBitrate);
|
||||
&& (format.bitrate == Format.NO_VALUE || format.bitrate <= params.maxVideoBitrate)
|
||||
&& (format.frameRate == Format.NO_VALUE || format.frameRate <= params.maxFrameRate);
|
||||
if (!isWithinConstraints && !params.exceedVideoConstraintsIfNecessary) {
|
||||
// Track should not be selected.
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in a new issue