# Video Sharing

For sharing a video, you need to pass the path of the video to **StoryContent** instance

```csharp
StoryContent content = new StoryContent ("PATH_TO_VIDEO_FILE", true);
```

{% hint style="info" %}
&#x20;Passing **true** to StoryContent instance indicates the file passed is a **video**
{% endhint %}

Share the StoryContent on Instagram

```csharp
InstagramKitManager.Share(content, OnShareComplete); //OnShareComplete is callback method
```

{% hint style="info" %}
Video passed can be of H.264 or H.265 or WebM formats.
{% endhint %}

Example

```csharp
using VoxelBusters.InstagramKit;

void ShareImage(string filePath)
{
    // Create Story Content Instance
    StoryContent content = new StoryContent(filePath, true);
    
    // Share
    InstagramKitManager.Share(content, OnShareComplete);
}

private void OnShareComplete(bool success, string error)
{
	string message  =  success ? "Successfully Shared" : "Failed to share " + error;
	Debug.Log(message);
}
```


---

# 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.instagramkit.voxelbusters.com/api/video-sharing.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.
