Agent Skill
2/7/2026

mux-video

Comprehensive guide to building video applications with Mux, the developer-first video infrastructure platform. This skill covers video streaming, live streaming, player integrations, analytics with Mux Data, and AI-powered workflows. Whether you are building a video-on-demand platform, live streaming application, or integrating video into an existing product, this documentation provides the patterns and code examples needed to ship quickly.

M
muxinc
1GitHub Stars
1Views
npx skills add muxinc/skills

SKILL.md

Namemux-video
DescriptionComprehensive guide to building video applications with Mux, the developer-first video infrastructure platform. This skill covers video streaming, live streaming, player integrations, analytics with Mux Data, and AI-powered workflows. Whether you are building a video-on-demand platform, live streaming application, or integrating video into an existing product, this documentation provides the patterns and code examples needed to ship quickly.

name: mux-video description: Comprehensive guide to building video applications with Mux, the developer-first video infrastructure platform. This skill covers video streaming, live streaming, player integrations, analytics with Mux Data, and AI-powered workflows. Whether you are building a video-on-demand platform, live streaming application, or integrating video into an existing product, this documentation provides the patterns and code examples needed to ship quickly.

Mux Video Platform

Comprehensive guide to building video applications with Mux, the developer-first video infrastructure platform. This skill covers video streaming, live streaming, player integrations, analytics with Mux Data, and AI-powered workflows. Whether you are building a video-on-demand platform, live streaming application, or integrating video into an existing product, this documentation provides the patterns and code examples needed to ship quickly.

Key Capabilities

  • Video Hosting and Streaming: Upload, transcode, and deliver video content globally via adaptive bitrate streaming (HLS)
  • Live Streaming: Real-time video broadcasting with RTMP/SRT ingest, low-latency options, and automatic recording
  • Mux Player: Drop-in video player components for web (React, vanilla JS), iOS, and Android with built-in analytics
  • Mux Data: Quality of experience analytics, engagement metrics, and real-time monitoring
  • Content Security: Signed playback URLs, DRM protection (Widevine/FairPlay), and domain restrictions
  • AI Workflows: Automatic chapter generation, video summarization, content moderation, and audio dubbing

Quick Start

Get streaming in five minutes:

  1. Create an API Access Token in the Mux Dashboard with Video Read and Write permissions

  2. Create a video asset from a URL:

curl https://api.mux.com/video/v1/assets \
  -H "Content-Type: application/json" \
  -X POST \
  -d '{ "input": [{ "url": "https://muxed.s3.amazonaws.com/leds.mp4" }], "playback_policy": ["public"] }' \
  -u ${MUX_TOKEN_ID}:${MUX_TOKEN_SECRET}
  1. Play the video using the returned playback ID:
<script src="https://cdn.jsdelivr.net/npm/@mux/mux-player"></script>
<mux-player playback-id="YOUR_PLAYBACK_ID"></mux-player>

See examples/quickstart-stream-video.md for the complete walkthrough with SDK examples in Node.js, Python, Ruby, Go, and PHP.


Reference Documentation

Core Concepts

Foundational knowledge for working with Mux APIs and infrastructure.

FileDescription
reference/mux-fundamentals.mdOrganizations, environments, assets, playback IDs, and API structure
reference/api-authentication.mdAccess tokens, permissions, and secure API request patterns
reference/webhooks.mdWebhook events, signature verification, and event handling
reference/content-security-policy.mdCSP configuration for Mux Player and streaming domains

Mux Player

Drop-in video player components with built-in analytics and adaptive controls.

FileDescription
reference/mux-player-overview.mdPlatform support (web, iOS, Android), installation, and core features
reference/player-setup-integration.mdHTML, React, iframe embed, and native mobile integration
reference/player-customization.mdTheming, CSS variables, custom controls, and branding
reference/player-advanced-features.mdChromecast, AirPlay, DVR mode, picture-in-picture, and quality selection
reference/playback-security.mdSigned URLs, JWT token generation, and playback restrictions
reference/playback-modifiers-resolution.mdResolution capping, bandwidth hints, and playback URL parameters

Video Upload and Asset Management

Methods for getting video content into Mux and configuring assets.

FileDescription
reference/upload-methods.mdURL ingestion, direct uploads, and resumable upload protocols
reference/mux-uploader.mdDrop-in upload components for web with progress and error handling
reference/mobile-upload-sdks.mdiOS and Android upload SDKs for native applications
reference/asset-configuration.mdVideo quality tiers, MP4 support, master access, and encoding settings
reference/text-tracks-and-audio.mdCaptions, subtitles, audio tracks, and language configuration

Live Streaming

Real-time video broadcasting with global ingest and low-latency delivery.

FileDescription
reference/live-streaming-getting-started.mdCreating live streams, stream keys, and basic broadcasting
reference/live-stream-configuration.mdLatency modes, reconnect windows, and recording settings
reference/streaming-protocols-encoder-setup.mdRTMP, RTMPS, SRT protocols and encoder configuration
reference/live-stream-features.mdSimulcasting, live clipping, DVR mode, and embedded captions
reference/live-stream-troubleshooting.mdCommon issues, debugging, and encoder compatibility

Mux Data and Analytics

Quality of experience metrics, engagement tracking, and performance monitoring.

FileDescription
reference/metrics-overview.mdViews, watch time, QoE scores, and metric definitions
reference/dashboards-and-filtering.mdDashboard navigation, filters, and data exploration
reference/custom-metadata-and-dimensions.mdCustom dimensions, video metadata, and viewer identification
reference/data-exports.mdCSV exports, S3 delivery, and raw data access
reference/alerts-and-monitoring.mdAlert configuration, thresholds, and notification channels
reference/privacy-and-configuration.mdData retention, GDPR compliance, and privacy settings

Player Monitoring Integrations

Integrating Mux Data with third-party video players.

FileDescription
reference/web-player-integrations.mdVideo.js, HLS.js, Shaka Player, JW Player, and Bitmovin
reference/mobile-player-integrations.mdAVPlayer (iOS), ExoPlayer (Android), and native SDKs
reference/smart-tv-device-integrations.mdRoku, Fire TV, Apple TV, and smart TV platforms
reference/custom-player-integrations.mdBuilding custom player integrations with Mux Data SDK

Video Features and Tools

Additional video capabilities beyond basic playback.

FileDescription
reference/video-clipping.mdCreating clips from assets, URL-based clipping, and clip management
reference/images-and-thumbnails.mdThumbnail generation, animated GIFs, and timeline previews
reference/custom-domains-and-security.mdCNAME setup, SSL certificates, and branded delivery domains
reference/social-sharing-and-special-features.mdOG tags, Twitter cards, and social media optimization

Framework Integrations

Platform-specific guides for popular web and mobile frameworks.

FileDescription
reference/web-framework-integrations.mdNext.js, Remix, SvelteKit, Nuxt, and other web frameworks
reference/react-native-getting-started.mdSetting up Mux in React Native applications
reference/react-native-video-features.mdVideo playback, uploads, and analytics in React Native
reference/react-native-ui-patterns.mdCommon UI patterns for video apps (feeds, stories, full-screen)
reference/react-native-advanced-topics.mdPerformance optimization, offline playback, and background audio

CMS Integrations and SDKs

Connecting Mux with content management systems and backend services.

FileDescription
reference/cms-integrations.mdSanity, Contentful, WordPress, Strapi, and other CMS platforms
reference/server-side-sdks.mdNode.js, Python, Ruby, PHP, Go, Java, and .NET SDKs
reference/mcp-server.mdMux MCP server for AI assistant integrations

Pricing and Cost Management

Understanding and optimizing Mux costs.

FileDescription
reference/pricing-overview.mdPricing model, billable metrics, and cost calculations
reference/cost-optimization.mdStrategies for reducing encoding, storage, and delivery costs

Examples

Getting Started

FileDescription
examples/quickstart-stream-video.mdComplete guide to uploading and playing your first video
examples/webhook-signature-verification.mdVerifying webhook signatures in Node.js, Python, and Ruby

Player Integration

FileDescription
examples/mux-player-web-setup.mdSetting up Mux Player in HTML, React, and Vue applications
examples/signed-url-playback.mdGenerating and using signed playback URLs with JWTs
examples/drm-protected-playback.mdConfiguring DRM-protected content with Widevine and FairPlay

Video Upload

FileDescription
examples/direct-upload-with-webhooks.mdClient-side uploads with server webhook handling
examples/video-with-captions-and-metadata.mdUploading videos with subtitle tracks and custom metadata

Live Streaming

FileDescription
examples/live-streaming-complete-setup.mdEnd-to-end live streaming implementation
examples/live-captions-and-simulcasting.mdAdding live captions and streaming to multiple platforms

Analytics

FileDescription
examples/custom-analytics-integration.mdAdvanced Mux Data integration with custom dimensions
examples/web-player-integration-example.mdIntegrating Mux Data with Video.js and HLS.js
examples/mobile-player-integration-example.mdiOS and Android analytics SDK integration

Video Features

FileDescription
examples/video-clipping-workflows.mdCreating clips for social sharing and highlights
examples/thumbnail-and-preview-integration.mdDynamic thumbnails and timeline hover previews

React Native

FileDescription
examples/react-native-stories-app.mdBuilding an Instagram-style stories feature
examples/react-native-video-upload-workflow.mdComplete upload flow with progress and background handling

CMS Integration

FileDescription
examples/cms-setup-sanity.mdIntegrating Mux with Sanity CMS

AI Workflows

FileDescription
examples/ai-video-workflows.mdAutomatic chapters, summarization, and tagging with @mux/ai
examples/content-moderation-strategies.mdAI-powered content moderation for user-generated video
examples/video-synchronization.mdSyncing video playback across multiple viewers

Important Notes

API Authentication

All Mux API requests require authentication using a Token ID and Token Secret. API requests must be made from a server environment - the API does not support CORS and credentials should never be exposed in client-side code.

Playback IDs vs Asset IDs

  • Asset IDs are used to manage content via the API (api.mux.com)
  • Playback IDs are used to stream content to viewers (stream.mux.com)
  • An asset can have multiple playback IDs with different policies (public vs signed)

Webhooks vs Polling

Always prefer webhooks over polling to track asset status. Webhooks provide real-time notifications when assets are ready, live streams change state, or uploads complete. Configure webhooks per environment in the Mux Dashboard.

Video Quality Tiers

Mux offers different video quality tiers (basic, plus, premium) that affect encoding quality and pricing. Choose the appropriate tier based on your content type and quality requirements.

Stream Key Security

Live stream keys should be treated as secrets. Anyone with the stream key can broadcast to your live stream. Reset keys immediately if compromised.

Skills Info
Original Name:mux-videoAuthor:muxinc