hamrah-player v0.1.0
Hamrah Academy Player
A player for playing standard HLS, Pouan, and AbreHanrahi HLS, as well as any standard format or file. The player supports features such as user tracking, IP limitation, ease of use, advertisement, subtitles, and many other functionalities.
Prerequisites
This project requires NodeJS (version 8 or later) and NPM. Node and NPM are really easy to install. To make sure you have them available on your machine, try running the following command.
$ npm -v && node -v
6.4.1
v8.16.0
Table of contents
- Hamrah Academy Player
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Installation
BEFORE YOU INSTALL: please read the prerequisites
To install the library, run:
$ npm i hamrah-player
Or if you prefer using Yarn:
$ yarn add hamrah-player
then import css file
Usage
Example
<Player playUrl="https://media.ino.school/media/hls/2a076b50fc4b42068aabfff147de1ebc/master.m3u8"/>
<IpCheck serviceUrl={""} ip={""}>
{canPlay => {
if (!canPlay) return <IPCheckNotAllowed/>;
return (
<Player playUrl="https://media.ino.school/media/hls/2a076b50fc4b42068aabfff147de1ebc/master.m3u8"/>
)
}}
</IpCheck>
<br />
<Tracker videoId="111" userId="123" serviceUrl="https://contentplayer.myapi.ir/api/v1/ContentMetaData" isLiked>
<Player playUrl="https://media.ino.school/media/hls/2a076b50fc4b42068aabfff147de1ebc/master.m3u8"/>
</Tracker>
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Add your changes:
git add .
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :sunglasses:
Built With
- react with vite
- video.js and libraries
- Love
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- Morteza SafariShahi - Initial work - Morteza SafariShahi
See also the list of contributors who participated in this project.
License
MIT License © Andrea SonnY
3 days ago
3 days ago
3 days ago
3 days ago
9 days ago
9 days ago
9 days ago
9 days ago
9 days ago
9 days ago
9 days ago
9 days ago
9 days ago
11 days ago
11 days ago
11 days ago
11 days ago
10 days ago
10 days ago
10 days ago
10 days ago
11 days ago
10 days ago
11 days ago
11 days ago
11 days ago
11 days ago
11 days ago
11 days ago
12 days ago
12 days ago
12 days ago
12 days ago
11 days ago
11 days ago
11 days ago
12 days ago
12 days ago
12 days ago
15 days ago
15 days ago
15 days ago
15 days ago
15 days ago
15 days ago
16 days ago
16 days ago
16 days ago
15 days ago
15 days ago
16 days ago
15 days ago
16 days ago
16 days ago
17 days ago
17 days ago
17 days ago
18 days ago
18 days ago
18 days ago
19 days ago
19 days ago
20 days ago