> For the complete documentation index, see [llms.txt](https://assetstore.instagramkit.voxelbusters.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://assetstore.instagramkit.voxelbusters.com/api/video-sharing.md).

# 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);
}
```
