MuxVideoUpload.Maui 1.0.2

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package MuxVideoUpload.Maui --version 1.0.2
                    
NuGet\Install-Package MuxVideoUpload.Maui -Version 1.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MuxVideoUpload.Maui" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MuxVideoUpload.Maui" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="MuxVideoUpload.Maui" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MuxVideoUpload.Maui --version 1.0.2
                    
#r "nuget: MuxVideoUpload.Maui, 1.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MuxVideoUpload.Maui@1.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MuxVideoUpload.Maui&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=MuxVideoUpload.Maui&version=1.0.2
                    
Install as a Cake Tool

MuxVideoUpload.Maui

Upload videos directly to Mux from .NET MAUI apps (iOS and Android). No backend required: your app passes Mux credentials and a local file path; the library fetches a signed upload URL, uploads the file, and returns the playback URL.

The library has no default or hardcoded credentials. You must pass your Mux Access Token ID and Token Secret from your app (e.g. from secure config or user settings).

Installation

dotnet add package MuxVideoUpload.Maui

Or add a project reference to the library project.

Usage

  1. Get your Mux Access Token ID and Token Secret from the Mux dashboard (Settings → Access Tokens). Pass these from your app—do not hardcode them in production.

  2. Create a service and call UploadAsync with the file path and credentials:

using MuxVideoUpload.Maui;

var service = new MuxUploadService();

// Credentials must be provided by your app (e.g. from secure storage or config).
string accessTokenId = "YOUR_MUX_TOKEN_ID";
string accessTokenSecret = "YOUR_MUX_TOKEN_SECRET";
string videoPath = "/path/to/video.mp4"; // e.g. from device picker or camera

try
{
    // Default: playback URL without .m3u8
    string playbackUrl = await service.UploadAsync(
        accessTokenId,
        accessTokenSecret,
        videoPath);

    // Or with .m3u8 in the URL (optional parameter, default is false)
    string playbackUrlWithM3u8 = await service.UploadAsync(
        accessTokenId,
        accessTokenSecret,
        videoPath,
        includeM3u8InPlaybackUrl: true);

    // Use playbackUrl in your player (e.g. MediaElement, or https://stream.mux.com/...)
}
catch (MuxUploadException ex)
{
    // Handle upload or API errors
}

Optional: use your own HttpClient

var httpClient = new HttpClient();
// Configure timeouts, handlers, etc. if needed.
var service = new MuxUploadService(httpClient);

Requirements

  • .NET 10+
  • Target frameworks: net10.0-android, net10.0-ios (for use in MAUI apps targeting iOS and Android)

License

MIT

Product Compatible and additional computed target framework versions.
.NET net10.0-android36.0 is compatible.  net10.0-ios26.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0-android36.0

    • No dependencies.
  • net10.0-ios26.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated