You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

Fastpix

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Fastpix

LIVE STREAMING API: The Live Stream APIs in FastPix simplifies the process of creating,managing, and distributing live content. This set of API endpoints is designed to help developers initiate live broadcasts, configure stream settings, and extend streams to external platforms (via simulcasting). By integrating FastPix's live streaming capabilities into your applications, you can provide users with seamless and high-quality live video experiences, whether for events, webinars, gaming, or live content creation. <br /><br /> Live streams can be customized with various parameters, such as stream metadata, privacy settings, and playback configurations. Additionally, the API supports real-time interaction with streams, including updating stream details, managing playback IDs, and extending the reach of a stream through simulcasting to platforms like YouTube or Facebook. <br /><br /> &lt;h3&gt;Use case scenarios&lt;/h3&gt;<br /><br /> **Event Broadcasting**: A developer integrates FastPix live streaming APIs into an event management platform. By leveraging these APIs, the platform can enable event organizers to set up live streams for conferences, concerts, or webinars, allowing viewers to tune in from multiple platforms simultaneously via simulcasting. <br /><br /> **Live Content Platforms**: Developers working on a live content platform for creators can use the live stream APIs to allow users to broadcast gaming, vlogs, or tutorials. Creators can manage their streams in real time, control playback options, and extend their reach by simulcasting to popular platforms like Twitch or YouTube. <br /><br /> **Corporate Streaming Services**: A corporate communication tool can integrate live streaming functionality for internal town halls or global employee meetings. The live streams can be made accessible to different employee groups through privacy settings and playback control, ensuring secure and efficient internal communication.

0.1.2
nugetNuGet
Version published
Maintainers
1
Created
Source

FastPix C# SDK

Developer-friendly & type-safe C# SDK specifically designed to leverage the FastPix platform API.

Introduction

The FastPix C# SDK simplifies integration with the FastPix platform. This SDK is designed for secure and efficient communication with the FastPix API, enabling easy management of media uploads, live streaming, and simulcasting.

Key Features

  • Media API

    • Upload Media: Upload media files seamlessly from URLs or devices
    • Manage Media: Perform operations such as listing, fetching, updating, and deleting media assets
    • Playback IDs: Generate and manage playback IDs for media access
  • Live API

    • Create & Manage Live Streams: Create, list, update, and delete live streams effortlessly
    • Control Stream Access: Generate playback IDs for live streams to control and manage access
    • Simulcast to Multiple Platforms: Stream content to multiple platforms simultaneously

For detailed usage, refer to the FastPix API Reference.

SDK Installation

To add a reference to a local instance of the SDK in a .NET project:

dotnet add reference src/Fastpix/Fastpix.csproj

SDK Example Usage

Example

using Fastpix;
using Fastpix.Models.Components;

var sdk = new FastPix(security: new Security() {
    username("your-access-token-id")
    password("your-secret-key")
});

CreateLiveStreamRequest req = new CreateLiveStreamRequest() {
    PlaybackSettings = new PlaybackSettings() {},
    InputMediaSettings = new InputMediaSettings() {
        Metadata = new CreateLiveStreamRequestMetadata() {},
    },
};

var res = await sdk.StartLiveStream.CreateNewStreamAsync(req);

// handle response

Available Resources and Operations

InputVideo

ManageLiveStream

ManageVideos

Playback

SimulcastStream

StartLiveStream

Error Handling

Handling errors in this SDK should largely match your expectations. All operations return a response object or throw an exception.

By default, an API error will raise a Fastpix.Models.Errors.APIException exception, which has the following properties:

PropertyTypeDescription
MessagestringThe error message
RequestHttpRequestMessageThe HTTP request
ResponseHttpResponseMessageThe HTTP response

When custom error responses are specified for an operation, the SDK may also throw their associated exceptions. You can refer to respective Errors tables in SDK docs for more details on possible exception types for each operation. For example, the CreateNewStreamAsync method throws the following exceptions:

Error TypeStatus CodeContent Type
Fastpix.Models.Errors.UnauthorizedException401application/json
Fastpix.Models.Errors.InvalidPermissionException403application/json
Fastpix.Models.Errors.ValidationErrorResponse422application/json
Fastpix.Models.Errors.APIException4XX, 5XX*/*

Example

using Fastpix;
using Fastpix.Models.Components;
using Fastpix.Models.Errors;

var sdk = new FastPix(security: new Security() {
    Username = "your-access-token-id",
    Password = "your-secret-key",
});

try
{
    CreateLiveStreamRequest req = new CreateLiveStreamRequest() {
        PlaybackSettings = new PlaybackSettings() {},
        InputMediaSettings = new InputMediaSettings() {
            Metadata = new CreateLiveStreamRequestMetadata() {},
        },
    };

    var res = await sdk.StartLiveStream.CreateNewStreamAsync(req);

    // handle response
}
catch (Exception ex)
{
    if (ex is UnauthorizedException)
    {
        // Handle exception data
        throw;
    }
    else if (ex is InvalidPermissionException)
    {
        // Handle exception data
        throw;
    }
    else if (ex is ValidationErrorResponse)
    {
        // Handle exception data
        throw;
    }
    else if (ex is Fastpix.Models.Errors.APIException)
    {
        // Handle default exception
        throw;
    }
}

Server Selection

Override Server URL Per-Client

The default server can be overridden globally by passing a URL to the serverUrl: string optional parameter when initializing the SDK client instance. For example:

using Fastpix;
using Fastpix.Models.Components;

var sdk = new FastPix(
    serverUrl: "https://v1.fastpix.io/live",
    security: new Security() {
        Username = "your-access-token-id",
        Password = "your-secret-key",
    }
);

CreateLiveStreamRequest req = new CreateLiveStreamRequest() {
    PlaybackSettings = new PlaybackSettings() {},
    InputMediaSettings = new InputMediaSettings() {
        Metadata = new CreateLiveStreamRequestMetadata() {},
    },
};

var res = await sdk.StartLiveStream.CreateNewStreamAsync(req);

// handle response

Development

Maturity

This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.

Keywords

FAQs

Package last updated on 02 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.