# parseInterrupt

URL: https://www.caprid.com/docs/reference/typescript/caprid/moq-media/functions/parseinterrupt/

```ts
function parseInterrupt(payload): Interrupt;
```

Defined in: [interrupt.ts:64](https://github.com/caprids/relay-sdks/blob/main/ts/packages/moq-media/src/interrupt.ts#L64)

Read an interrupt object's payload. Throws on a payload that is not a UTF-8 JSON object with a non-empty string
`track` and a nonnegative safe-integer `untilUs`, or whose `fromUs`, when present, is not one before `untilUs`.
Other fields are ignored.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `payload` | `Uint8Array` |

## Returns

[`Interrupt`](https://www.caprid.com/docs/reference/typescript/caprid/moq-media/interfaces/interrupt/)
