# Share Recorded Video

Once a recording is finished and available, you can share the file to other services.

{% hint style="warning" %}
Currently share recording is not supported for 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}");
        SaveRecording();
    });
}
void SaveRecording()
{
    recorder.SaveRecording(null, (result, error) =>
    {
        if(error == null)
        {
            Debug.Log("Saved recording successfully :" + result.Path);
            ShareRecording();
        }
        else
        {
            Debug.Log($"Failed saving recording [{error}]");
        }
    });
}

void ShareRecording()
{
    recorder.ShareRecording(callback: (success, error) =>
    {
        if (success)
        {
            Debug.Log("Shared recording");
        }
        else
        {
            Debug.Log($"Failed to share recording [{error}]");
        }
    });
}

```


---

# 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/share-recorded-video.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.
