Skip to content

Commit

Permalink
Update VideoDecoderConfig docs to correctly reflect optional fields (
Browse files Browse the repository at this point in the history
  • Loading branch information
friendlymatthew authored Oct 2, 2024
1 parent d5c2761 commit 9efc5c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions files/en-us/web/api/videodecoder/configure/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ configure(config)
- : An integer representing the horizontal dimension of the {{domxref("VideoFrame")}} in pixels when displayed.
- `displayAspectHeight` {{optional_inline}}
- : An integer representing the vertical dimension of the {{domxref("VideoFrame")}} in pixels when displayed.
- `colorSpace`
- `colorSpace` {{optional_inline}}
- : An object representing a {{domxref("VideoColorSpace")}}, containing the following members:
- `primaries`
- : A string representing the color {{glossary("gamut")}} of the video sample. One of:
Expand All @@ -50,12 +50,12 @@ configure(config)
- `"bt709"`
- `"bt470bg"`
- `"smpte170m"`
- `hardwareAcceleration`
- `hardwareAcceleration` {{optional_inline}}
- : A hint as to the hardware acceleration method to use. One of:
- `"no-preference"`
- `"prefer-hardware"`
- `"prefer-software"`
- `optimizeForLatency`
- `optimizeForLatency` {{optional_inline}}
- : A boolean. If `true` this is a hint that the selected decoder should be optimized to minimize the number of {{domxref("EncodedVideoChunk")}} objects that have to be decoded before a {{domxref("VideoFrame")}} is output.

> [!NOTE]
Expand Down

0 comments on commit 9efc5c0

Please sign in to comment.