
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
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 /> <h3>Use case scenarios</h3><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.
Developer-friendly & type-safe C# SDK specifically designed to leverage the FastPix platform API.
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.
For detailed usage, refer to the FastPix API Reference.
To add a reference to a local instance of the SDK in a .NET project:
dotnet add reference src/Fastpix/Fastpix.csproj
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
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:
Property | Type | Description |
---|---|---|
Message | string | The error message |
Request | HttpRequestMessage | The HTTP request |
Response | HttpResponseMessage | The 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 Type | Status Code | Content Type |
---|---|---|
Fastpix.Models.Errors.UnauthorizedException | 401 | application/json |
Fastpix.Models.Errors.InvalidPermissionException | 403 | application/json |
Fastpix.Models.Errors.ValidationErrorResponse | 422 | application/json |
Fastpix.Models.Errors.APIException | 4XX, 5XX | */* |
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;
}
}
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
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.
FAQs
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 /> <h3>Use case scenarios</h3><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.
We found that fastpix demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.