diff --git a/README.md b/README.md index 4e78a9e1..e012499d 100644 --- a/README.md +++ b/README.md @@ -322,11 +322,11 @@ No config options. | Function | Description | Return type | Supported OS | | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `play` | Plays the media session. Affects the current media session, unless `MediaControlOptions.sessionId` is specified.

**Parameters:**
`options`: _`MediaControlOptions \| undefined`_ Additional options.
| `Promise` | microsoft icon | -| `pause` | Pauses the media session. Affects the current media session, unless `MediaControlOptions.sessionId` is specified.

**Parameters:**
`options`: _`MediaControlOptions \| undefined`_ Additional options.
| `Promise` | microsoft icon | -| `togglePlayPause` | Toggles between playing/pausing the media session. Affects the current media session, unless `MediaControlOptions.sessionId` is specified.

**Parameters:**
`options`: _`MediaControlOptions \| undefined`_ Additional options.
| `Promise` | microsoft icon | -| `next` | Skips to the next track. Affects the current media session, unless `MediaControlOptions.sessionId` is specified.

**Parameters:**
`options`: _`MediaControlOptions \| undefined`_ Additional options.
| `Promise` | microsoft icon | -| `previous` | Skips to the previous track. Affects the current media session, unless `MediaControlOptions.sessionId` is specified.

**Parameters:**
`options`: _`MediaControlOptions \| undefined`_ Additional options.
| `Promise` | microsoft icon | +| `play` | Plays the media session. Affects the current media session, unless `MediaControlOptions.session_id` is specified.

**Parameters:**
`options`: _`MediaControlOptions \| undefined`_ Additional options.
| `Promise` | microsoft icon | +| `pause` | Pauses the media session. Affects the current media session, unless `MediaControlOptions.session_id` is specified.

**Parameters:**
`options`: _`MediaControlOptions \| undefined`_ Additional options.
| `Promise` | microsoft icon | +| `togglePlayPause` | Toggles between playing/pausing the media session. Affects the current media session, unless `MediaControlOptions.session_id` is specified.

**Parameters:**
`options`: _`MediaControlOptions \| undefined`_ Additional options.
| `Promise` | microsoft icon | +| `next` | Skips to the next track. Affects the current media session, unless `MediaControlOptions.session_id` is specified.

**Parameters:**
`options`: _`MediaControlOptions \| undefined`_ Additional options.
| `Promise` | microsoft icon | +| `previous` | Skips to the previous track. Affects the current media session, unless `MediaControlOptions.session_id` is specified.

**Parameters:**
`options`: _`MediaControlOptions \| undefined`_ Additional options.
| `Promise` | microsoft icon | #### Related types @@ -350,7 +350,7 @@ No config options. | Variable | Description | Return type | | ------------------ | ----------------------------- | ----------------------- | -| `sessionId` | ID of the session to control. If `undefined`, the current session is used. | `string \| undefined` | +| `session_id` | ID of the session to control. If `undefined`, the current session is used. | `string \| undefined` | ### Memory