FastPix C# SDK
FastPix C# SDK
Learn how to use FastPix C# SDK to build video apps with media upload, live stream, and playback.
Add secure, scalable video to your .NET project
The FastPix C# SDK gives you everything you need to manage video from your backend. Upload files from a public URL, attach metadata, and retrieve playback links, all without building encoding pipelines or managing storage. With this SDK, you can:
- Upload and organize video assets
- Define access control and metadata
- Generate HLS playback URLs
- Streamline video delivery from your .NET server
Find more in the SDK reference
To explore more examples, API methods, and advanced usage, see the FastPix C# SDK on GitHub.
Prerequisites
Before you start using the SDK, make sure you have the following:
- .NET 8.0 or later: This SDK is compatible with .NET 8.0 or higher
- Visual Studio 2022 or VS Code: Recommended IDE for C# development
- NuGet Package Manager: Required for package management
- FastPix API credentials: You’ll need an Access Token and a Secret Key. You can generate these credentials by following the steps in the Authentication guide
- Basic understanding of C# and REST APIs: Familiarity with C# development and API integration concepts
Installation
Install the SDK using NuGet Package Manager Console:
Or using .NET CLI:
Local Reference
To add a reference to a local instance of the SDK in a .NET project:
Import the SDK
Example
Let’s create a file named Program.cs
This example shows how to upload a video from a public URL with metadata and public access:
NOTE
In the following example, replaceyour-access-tokenandyour-secret-keywith the Access Token ID and Secret Key values from the.envfile you downloaded.
After the video is processed, you can use the media ID to fetch playback info, monitor status, or transform content through the API.
Run the example
To execute the C# program, use the following command. Make sure to replace Program.cs with your actual file name if it’s different:
NOTE
Some methods might throw errors when you are on a trial plan.
Release notes
For a complete history of releases, improvements, and fixes, see the FastPix C# SDK CHANGELOG on GitHub.