---
title: "OnRecordingPlaybackEnd | open.mp"
description: "This callback is called when a recorded file being reproduced with StartRecordingPlayback has reached to its end."
canonical: https://omp.itsneufox.com/uk/docs/scripting/callbacks/OnRecordingPlaybackEnd
language: uk
---

# OnRecordingPlaybackEnd

## Description

This callback is called when a .rec file, being played with [StartRecordingPlayback](https://omp.itsneufox.com/uk/docs/scripting/functions/StartRecordingPlayback), has reached its end.

## Examples

```c
public OnRecordingPlaybackEnd()
{
    StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER, "all_around_lv_bus"); // This will play the recording again once it has reached its end.
}
```

## Related Functions

The following functions might be useful, as they're related to this callback in one way or another.

-   [StartRecordingPlayback](https://omp.itsneufox.com/uk/docs/scripting/functions/StartRecordingPlayback): Starts reproducing an already recorded .rec file.
-   [StopRecordingPlayback](https://omp.itsneufox.com/uk/docs/scripting/functions/StopRecordingPlayback): Stops reproducing a .rec file.
