Skip to content

Commit

Permalink
fix: Update capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
alkalinecoffee committed Jul 19, 2024
1 parent 65f0e0b commit c61e4fd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
16 changes: 8 additions & 8 deletions requirements/specifications/media/media-capabilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ The `AudioOutput` module **MUST** include a `mode` method that returns a `Media.

This method **MUST** have a corresponding `onModeChanged` event to notify listeners after a change to this property has been made and that change has taken effect.

Access to these methods **MUST** require the `use` role of the `xrn:firebolt:capability:audio-output:config` capability.
Access to these methods **MUST** require the `use` role of the `xrn:firebolt:capability:audio-output:mode` capability.

```javascript
AudioOutput.mode()
Expand All @@ -596,7 +596,7 @@ This method **MUST** have a corresponding `onModeWillChange` event to notify lis

This method **MUST** have a corresponding `onModeChanged` event to notify listeners after a change to this property has been made and that change has taken effect.

Access to these methods **MUST** require the `use` role of the `xrn:firebolt:capability:video-output:config` capability.
Access to these methods **MUST** require the `use` role of the `xrn:firebolt:capability:video-output:mode` capability.

```javascript
VideoOutput.mode()
Expand All @@ -611,7 +611,7 @@ If no display is present, the height and width values **MUST** both be zero.

This method **MUST** have a corresponding `onResolutionChanged` event to notify listeners after a change to the device's `videoMode` property has been made and that change has taken effect.

Access to these methods **MUST** require the `use` role of the `xrn:firebolt:capability:video-output:config` capability.
Access to these methods **MUST** require the `use` role of the `xrn:firebolt:capability:video-output:mode` capability.

```javascript
VideoOutput.resolution()
Expand All @@ -624,7 +624,7 @@ The `VideoOutput` module **MUST** have an `hdrProfile` method that returns a `Me

This method **MUST** have a corresponding `onHdrProfileChanged` event to notify listeners after this property has changed and that change has taken effect.

Access to these methods **MUST** require the `use` role of the `xrn:firebolt:capability:video-output:config` capability.
Access to these methods **MUST** require the `use` role of the `xrn:firebolt:capability:video-output:hdrprofile` capability.

```javascript
VideoOutput.hdrProfile()
Expand All @@ -637,7 +637,7 @@ The `VideoOutput` module **MUST** have a `colorDepth` method that returns a `Med

This method **MUST** have a corresponding `onColorDepthChanged` event to notify listeners after this property has changed and that change has taken effect.

Access to these methods **MUST** be governed by the `xrn:firebolt:capability:video-output:config` capability.
Access to these methods **MUST** be governed by the `xrn:firebolt:capability:video-output:colordepth` capability.

```javascript
VideoOutput.colorDepth()
Expand All @@ -650,7 +650,7 @@ The `VideoOutput` module **MUST** have a `colorSpace` method that returns a `Med

This method **MUST** have a corresponding `onColorSpaceChanged` event to notify listeners after this property has changed and that change has taken effect.

Access to these methods **MUST** be governed by the `xrn:firebolt:capability:video-output:config` capability.
Access to these methods **MUST** be governed by the `xrn:firebolt:capability:video-output:colorspace` capability.

```javascript
VideoOutput.colorSpace()
Expand All @@ -661,7 +661,7 @@ VideoOutput.colorSpace()

The `VideoOutput` module **MUST** have a `quantizationRange` method that returns a `VideoOutput.QuantizationRange` value describing the quantization range currently set for video output.

Access to this method **MUST** be governed by the `xrn:firebolt:capability:video-output:config` capability.
Access to this method **MUST** be governed by the `xrn:firebolt:capability:video-output:quantization` capability.

```javascript
VideoOutput.quantizationRange()
Expand All @@ -682,7 +682,7 @@ This method **MUST** return the following properties:
| `mode` | `Media.VideoMode` |
| `resolution` | `Types.Dimensions` |

Access to this method **MUST** be governed by the `xrn:firebolt:capability:video-output:config` capability.
Access to this method **MUST** be governed by the `xrn:firebolt:capability:video-output:info` capability.

This method **MUST** have a corresponding `onCurrentSettingsChanged` event to notify listeners after any of the specified output properties have changed and that those changes have taken effect.

Expand Down
12 changes: 9 additions & 3 deletions src/sdks/core/sdk.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
]
},
{
"module": "Audio",
"module": "AudioOutput",
"use": [
"xrn:firebolt:capability:audio:config"
"xrn:firebolt:capability:audio-output:mode"
]
},
{
Expand Down Expand Up @@ -159,7 +159,13 @@
{
"module": "VideoOutput",
"use": [
"xrn:firebolt:capability:video:config"
"xrn:firebolt:capability:video-output:colordepth",
"xrn:firebolt:capability:video-output:colorspace",
"xrn:firebolt:capability:video-output:hdrprofile",
"xrn:firebolt:capability:video-output:info",
"xrn:firebolt:capability:video-output:mode",
"xrn:firebolt:capability:video-output:mode",
"xrn:firebolt:capability:video-output:quantization"
]
}
]
Expand Down

0 comments on commit c61e4fd

Please sign in to comment.