# Open Recording

Once you get a callback triggered on recording available (You can set it with [Register Listeners](/api/initialisation.md)), calling this method opens up a view/intent to play the recorded video/Gif.

{% hint style="warning" %}
Currently this method is not supported with GIF recording. Coming soon!
{% endhint %}

```csharp
using VoxelBusters.ScreenRecorderKit;

IScreenRecorder recorder;
//... Create instance for IScreenRecorder via ScreenRecorderBuilder

void RegisterListeners()
{
    recorder.SetOnRecordingAvailable((result) =>
    {
        string path = result.Data as string;
        Debug.Log($"File path: {path}");
        OpenRecording();
    });
}
void OpenRecording()
{
    recorder.OpenRecording((success, error) =>
    {
        if (success)
        {
            Debug.Log($"Open recording successful");
        }
        else
        {
            Debug.Log($"Open recording failed with error [{error}]");
        }
    });    
}

```

{% hint style="success" %}
You can have your own custom video preview by making use of the file path returned from SetOnRecordingAvailable listener and [Unity Video Player](https://docs.unity3d.com/ScriptReference/Video.VideoPlayer.html)
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://assetstore.replaykit.voxelbusters.com/api/preview.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
