---
name: "IpcPlayerContext.isMuted"
mode: "api"
versionRequirements:
  - { name: "Base Library", version: "2.21.8" }
title: "IpcContext.isMuted - 查询是否静音"
---

## IpcPlayerContext.isMuted

> [VERSION] Base Library >= 2.21.8

### Description

Query mute status

### Parameters

`Params`

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `options` | `IpcIsMutedOption` | No | Callback configuration |

### Return Value

None


### Referenced Types

##### `interface` IpcIsMutedOption

| Property | Type | Description |
| --- | --- | --- |
| `success` | `(result: IpcIsMutedResult) => void` | Callback invoked on successful API call |
| `fail` | `(result: IpcFailResult) => void` | Callback on failure |
| `complete` | `() => void` | Callback on complete (success or failure) |

##### `interface` IpcIsMutedResult

| Property | Type | Description |
| --- | --- | --- |
| `mute` | `0 \| 1` | Whether muted: 0 = not muted, 1 = muted |

##### `interface` IpcFailResult

| Property | Type | Description |
| --- | --- | --- |
| `errorCode` | `string` | Error code |
| `errorMsg` | `string` | Error message |


### Examples

#### Query mute status

```ts
const ipcCtx = ty.createIpcPlayerContext('deviceId');
ipcCtx.isMuted({
  success(res) {
    console.log('Is muted', res.mute);
  },
});
```
