Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Shineii86 authored May 6, 2024
1 parent 53edfbf commit d5476f8
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,11 @@ Welcome to M3U8 Player! This is a lightweight JavaScript-based player for playin
## Features

- Play M3U8 streams effortlessly.
- Supports live streaming and on-demand playback.
- ~Supports live streaming and on-demand playback.~
- Lightweight and easy to integrate into web applications.
- Customizable player controls.
- Compatible with all modern web browsers.

## Installation

You can use the M3U8 Player library by including the JavaScript file in your HTML code:

```html
<script src="m3u8player.js"></script>
```

## Usage

To use M3U8 Player, simply create a `<video>` element in your HTML code and specify the source URL of the M3U8 stream:

```html
<video id="m3u8-player" controls>
<source src="https://example.com/live/stream.m3u8" type="application/x-mpegURL">
</video>
```

Then, initialize the player using JavaScript:

```javascript
const player = new M3U8Player('m3u8-player');
```

## Demo

Check out the [live demo](https://shineii86.github.io/m3u8player/) to see M3U8 Player in action!
Expand Down

0 comments on commit d5476f8

Please sign in to comment.