Skip to content
Proyek

Tentang

Pemutar audio dan video HTML5 yang mendukung MP4, WebM, MP3, HLS, DASH, YouTube, Facebook, SoundCloud, dan lainnya melalui API MediaElement HTML5 yang sama, sehingga menyediakan antarmuka yang konsisten di semua browser.

Desain dan media

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
+2
dalam 15 hari
+3
dalam 1 bulan
+4

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

MediaElementJS

One file. Any browser. Same UI.

GitHub Version Build Status Coverage Status MIT License CDNJS jsDelivr Hits

Table of Contents

Introduction

MediaElementPlayer: HTML5 <video> and <audio> player

A complete HTML/CSS audio/video player built on top MediaElement.js.

In general, MediaElement.js supports IE11+, MS Edge, Chrome, Firefox, Safari, iOS 8+ and Android 4.0+.

It is strongly recommended to read the entire documentation and check the demo folder to get the most out of this package. Visit here to start.

Installation and Usage

The full documentation on how to install MediaElement.js is available at Installation.

A brief guide on how to create and use instances of MediaElement available at Usage.

Quick Start with Vite

# Clone the repository
git clone https://github.com/mediaelement/mediaelement.git

# Install dependencies
npm install

# Development server
npm run dev

# Production build
npm run build

Build Commands

  • npm run build - Production build with minification
  • npm run build:debug - Development build (unminified)
  • npm run dev - Start development server with hot reload
  • npm run preview - Preview production build
  • npm run lint - Run ESLint
  • npm run stylelint - Run Stylelint
  • npm run lint:all - Run all linters
  • npm run test - Run tests with Vitest
  • npm run test:all - Run linting, Vitest, the production build, and Playwright
  • npm run test:e2e - Run Playwright browser tests
  • npm run test:e2e:ui - Open the Playwright test UI

See Testing for unit and browser test setup, including local media fixtures.

Additional features can be found at https://github.com/mediaelement/mediaelement-plugins.

API and Configuration

MediaElement.js has many options that you can take advantage from. Visit API and Configuration for more details.

Also, a Utilities/Features guide is available for development. Visit Utilities/Features for more details.

Guidelines for Contributors

If you want to contribute to improve this package, please read Guidelines.

Useful resources

A compilation of useful articles can be found here.

Change Log

Changes available at Change Log.

Migration

For migrating mediaelement see Migration guide.

TODO list

IMPORTANT: Before posting an issue, it is strongly encouraged to read the whole documentation since it covers the majority of scenarios exposed in prior issues.

New features and pending bugs can be found at TODO list.

Jelajahi proyek terkait

Memuat…