diff options
author | Jordan Bayles <jophba@chromium.org> | 2021-03-30 10:01:12 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-01 03:02:12 +0000 |
commit | 0d56b58a5c140924c107bde67a890a0a79c5fbeb (patch) | |
tree | 8003631d1ec1a35ff44c51aae0d3420e9e953c23 /cast/protocol | |
parent | 21f04aefd1b06a959576202fc3a7616bc4de0b1d (diff) | |
download | openscreen-0d56b58a5c140924c107bde67a890a0a79c5fbeb.tar.gz |
[Cast] Make additional Constraint fields optional
This patch makes the maxDelay and maxPixelsPerSecond fields optional.
Bug: 1154956
Change-Id: I0afc8b31a657a5a6224a74a7c168273fb86ac59b
Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/2794863
Commit-Queue: Jordan Bayles <jophba@chromium.org>
Reviewed-by: Brandon Tolsch <btolsch@chromium.org>
Diffstat (limited to 'cast/protocol')
-rw-r--r-- | cast/protocol/castv2/streaming_examples/answer.json | 3 | ||||
-rw-r--r-- | cast/protocol/castv2/streaming_schema.json | 6 |
2 files changed, 3 insertions, 6 deletions
diff --git a/cast/protocol/castv2/streaming_examples/answer.json b/cast/protocol/castv2/streaming_examples/answer.json index 97a3e59a..73c45ea2 100644 --- a/cast/protocol/castv2/streaming_examples/answer.json +++ b/cast/protocol/castv2/streaming_examples/answer.json @@ -12,8 +12,7 @@ "maxSampleRate": 96000, "maxChannels": 5, "minBitRate": 32000, - "maxBitRate": 320000, - "maxDelay": 4000 + "maxBitRate": 320000 }, "video": { "maxPixelsPerSecond": 62208000, diff --git a/cast/protocol/castv2/streaming_schema.json b/cast/protocol/castv2/streaming_schema.json index 2c2fc59a..392d135c 100644 --- a/cast/protocol/castv2/streaming_schema.json +++ b/cast/protocol/castv2/streaming_schema.json @@ -110,7 +110,7 @@ "maxBitRate": {"type": "integer", "minimum": 32000, "maximum": 320000}, "maxDelay": {"$ref": "#/definitions/delay"} }, - "required": ["maxSampleRate", "maxChannels", "maxBitRate", "maxDelay"] + "required": ["maxSampleRate", "maxChannels", "maxBitRate"] }, "video_constraints": { "properties": { @@ -122,10 +122,8 @@ "maxDelay": {"$ref": "#/definitions/delay"} }, "required": [ - "maxPixelsPerSecond", "maxDimensions", - "maxBitRate", - "maxDelay" + "maxBitRate" ] }, "constraints": { |