---
name: "IpcPlayerContext.isTalkBacking"
mode: "api"
versionRequirements:
  - { name: "Base Library", version: "2.21.8" }
title: "IpcContext.isTalkBacking - 查询是否正在对讲"
---

## IpcPlayerContext.isTalkBacking

> [VERSION] Base Library >= 2.21.8

### Description

Check if intercom is active

### Parameters

`Params`

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `options` | `IpcIsTalkBackingOption` | No | Callback options |

### Return Value

None


### Referenced Types

##### `interface` IpcIsTalkBackingOption

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

##### `interface` IpcIsTalkBackingResult

| Property | Type | Description |
| --- | --- | --- |
| `isTalkBacking` | `boolean` | Whether intercom is in progress |

##### `interface` IpcFailResult

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


### Examples

#### Query intercom status

```ts
const ipcCtx = ty.createIpcPlayerContext('deviceId');
ipcCtx.isTalkBacking({
  success(res) {
    console.log('Is talkback in progress', res.isTalkBacking);
  },
});
```
