# Open Recording

Once you get a callback triggered on recording available (You can set it with [initialisation](https://assetstore.replaykit.voxelbusters.com/api/initialisation "mention")), 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 %}
