Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mux/mux-player

Package Overview
Dependencies
Maintainers
0
Versions
600
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mux/mux-player

An open source Mux player web component that Just Works™

  • 3.2.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created

What is @mux/mux-player?

@mux/mux-player is a web component that provides a customizable video player for Mux Video. It allows developers to easily integrate video playback with advanced features such as captions, playback speed control, and more.

What are @mux/mux-player's main functionalities?

Basic Video Playback

This feature allows you to embed a basic video player in your web application using the Mux Video playback ID. The player supports on-demand video streaming.

<mux-player stream-type="on-demand" playback-id="your-playback-id" />

Customizing Player Appearance

You can customize the appearance of the video player using CSS variables. This example changes the background color of the controls to a semi-transparent black.

<mux-player playback-id="your-playback-id" style="--controls-background-color: rgba(0, 0, 0, 0.5);" />

Captions and Subtitles

This feature allows you to add captions or subtitles to your video. The example shows how to include a VTT file for English captions.

<mux-player playback-id="your-playback-id"><track kind="captions" src="captions.vtt" srclang="en" label="English" default></mux-player>

Playback Speed Control

This feature enables users to control the playback speed of the video. The example provides options for 0.5x, 1x, 1.5x, and 2x speeds.

<mux-player playback-id="your-playback-id" playback-rates="[0.5, 1, 1.5, 2]" />

Other packages similar to @mux/mux-player

Keywords

FAQs

Package last updated on 20 Dec 2024

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc