🎥 Mux Video Streaming Demo

Testing Mux video player integration with automatic Mux Data analytics

Asset Information

Asset ID:
T01YalSLFFB6fyTIpVPjgxPMR8d1SQlTt02DglA01aQhAY

⚠️ Error

Mux client not configured. Please set MUX_TOKEN_ID and MUX_TOKEN_SECRET in .env

Make sure both MUX_TOKEN_ID and MUX_TOKEN_SECRET are set in your .env file.

📊 Mux Data Integration

The Mux Player web component automatically integrates with Mux Data. No additional configuration needed!

  • Automatic view tracking
  • Quality of Experience (QoE) metrics
  • Buffering and startup time
  • Video quality tracking
  • Viewer engagement metrics
  • Custom metadata (video_id, video_title, viewer_user_id, etc.)

View analytics at: Mux Data Dashboard

Usage Example

---
import MuxVideoPlayer from '~/plugins/mux/components/MuxVideoPlayer.astro';

const playbackId = 'your-playback-id';
---

<MuxVideoPlayer
  playbackId={playbackId}
  metadata={{
    video_id: 'my-video-123',
    video_title: 'My Awesome Video',
    viewer_user_id: 'user-456',
  }}
  aspectRatio="16:9"
  controls={true}
/>