0.1.0 • Published 3 days ago

hamrah-player v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 days ago

npm version code style: prettier

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

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.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Add your changes: git add .
  4. Commit your changes: git commit -am 'Add some feature'
  5. Push to the branch: git push origin my-new-feature
  6. 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

See also the list of contributors who participated in this project.

License

MIT License © Andrea SonnY

0.1.0

3 days ago

0.0.67

3 days ago

0.0.68

3 days ago

0.0.69

3 days ago

0.0.65

9 days ago

0.0.62

9 days ago

0.0.63

9 days ago

0.0.64

9 days ago

0.0.60

9 days ago

0.0.61

9 days ago

0.0.59

9 days ago

0.0.57

9 days ago

0.0.58

9 days ago

0.0.43

11 days ago

0.0.44

11 days ago

0.0.45

11 days ago

0.0.46

11 days ago

0.0.51

10 days ago

0.0.53

10 days ago

0.0.54

10 days ago

0.0.50

10 days ago

0.0.48

11 days ago

0.0.49

10 days ago

0.0.40

11 days ago

0.0.41

11 days ago

0.0.42

11 days ago

0.0.37

11 days ago

0.0.38

11 days ago

0.0.39

11 days ago

0.0.30

12 days ago

0.0.31

12 days ago

0.0.32

12 days ago

0.0.33

12 days ago

0.0.34

11 days ago

0.0.35

11 days ago

0.0.36

11 days ago

0.0.27

12 days ago

0.0.28

12 days ago

0.0.29

12 days ago

0.0.20

15 days ago

0.0.21

15 days ago

0.0.22

15 days ago

0.0.23

15 days ago

0.0.24

15 days ago

0.0.25

15 days ago

0.0.15

16 days ago

0.0.16

16 days ago

0.0.17

16 days ago

0.0.18

15 days ago

0.0.19

15 days ago

0.0.14

16 days ago

0.0.26

15 days ago

0.0.10

16 days ago

0.0.11

16 days ago

0.0.9

17 days ago

0.0.8

17 days ago

0.0.7

17 days ago

0.0.6

18 days ago

0.0.5

18 days ago

0.0.4

18 days ago

0.0.3

19 days ago

0.0.2

19 days ago

0.0.1

20 days ago