Video Sharing
Learn how to share a video
For sharing a video, you need to pass the path of the video to StoryContent instance
StoryContent content = new StoryContent ("PATH_TO_VIDEO_FILE", true);
Share the StoryContent on Instagram
InstagramKitManager.Share(content, OnShareComplete); //OnShareComplete is callback method
Example
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);
}
Last updated
Was this helpful?