---
name: "InnerAudioContext.onTimeUpdate"
mode: "kit"
versionRequirements:
  - { name: "BaseKit", version: "2.4.3" }
platform:
  - "iOS"
  - "Android"
title: "InnerAudioContext.onTimeUpdate"
---

## InnerAudioContext.onTimeUpdate

> [VERSION] BaseKit >= 2.4.3

> [PLATFORM] iOS, Android

### Description

Listen for audio playback progress updates (progress is returned by the system and may differ across platforms)

### Parameters

`(listener: Function)`

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `listener` | `(params: Object) => void` | Yes | - | Event listener callback function |

##### InnerAudioContext.onTimeUpdate.listener(params) properties

| Property | Type | Required | Default | Since | Description |
| --- | --- | --- | --- | --- | --- |
| `contextId` | `string` | Yes | - | `2.4.3` | ContextId of the InnerAudioContext object |
| `time` | `number` | Yes | - | `2.4.3` | Playback progress [0 - 1] |
| `current` | `number` | Yes | - | `3.19.0` | Current time, in seconds |


### Examples

```tsx
const manager = await ty.createInnerAudioContext();

manager.onTimeUpdate(e => {
  console.log(e);
});
```
