-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# M3U8 Player | ||
|
||
 | ||
|
||
Welcome to M3U8 Player! This is a lightweight JavaScript-based player for playing M3U8 streams. It supports live streaming as well as on-demand playback. | ||
|
||
## Features | ||
|
||
- Play M3U8 streams effortlessly. | ||
- 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://example.com/m3u8player-demo) to see M3U8 Player in action! | ||
|
||
## Contributing | ||
|
||
Contributions are welcome! Please feel free to fork this repository, make changes, and submit pull requests. | ||
|
||
## Issues | ||
|
||
If you encounter any issues or have suggestions for improvement, please [open an issue](https://github.com/Shineii86/m3u8player/issues) on GitHub. | ||
|
||
## Support | ||
|
||
For support or inquiries, please contact [[email protected]](mailto:[email protected]). | ||
|
||
## License | ||
|
||
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details. | ||
|
||
--- | ||
|
||
### Show Your Support | ||
|
||
If you find M3U8 Player useful, consider giving it a star on GitHub and sharing it with your friends and colleagues! | ||
|
||
[](https://github.com/Shineii86/m3u8player/stargazers) | ||
[](https://github.com/Shineii86/m3u8player/network/members) | ||
|
||
--- | ||
|
||
### Credits | ||
|
||
M3U8 Player is developed and maintained by [Shineii86](https://github.com/Shineii86). If you use this player in your project, please give proper credit. | ||
|
||
--- | ||
|
||
Feel free to customize the README.md further to fit your specific needs. |