All Projects → jim-junior → reactjs-media

jim-junior / reactjs-media

Licence: MIT license
The reactjs media is a react package with awesome HTMLMediaElements that are recreated into react components with a good looking UI and fast UX.

Programming Languages

javascript
184084 projects - #8 most used programming language
SCSS
7915 projects
HTML
75241 projects

Projects that are alternatives of or similar to reactjs-media

TonUINO
Alternative TonUINO Firmware
Stars: ✭ 112 (+646.67%)
Mutual labels:  player, media
Plyr React
A simple, accessible and customisable react media player for Video, Audio, YouTube and Vimeo
Stars: ✭ 89 (+493.33%)
Mutual labels:  player, media
React Native Ezplayer
EZPlayer component for react-native apps
Stars: ✭ 47 (+213.33%)
Mutual labels:  player, media
Universalvideoview
A better Android VideoView with more Media Controller customization. 一个更好用的Android VideoView
Stars: ✭ 941 (+6173.33%)
Mutual labels:  player, media
Player
▶️ video player in Swift, simple way to play and stream media on iOS/tvOS
Stars: ✭ 1,849 (+12226.67%)
Mutual labels:  player, media
Kotlin Life
App界的一股清流 音视频vr应有尽有 完全按照Material design规范设计的App (written with java and Kotlin)
Stars: ✭ 864 (+5660%)
Mutual labels:  player, media
Sjmediacacheserver
A HTTP Media Caching Framework. It can cache FILE or HLS media. 音视频边播边缓存框架, 支持 HLS(m3u8) 和 FILE(mp4, mp3等).
Stars: ✭ 87 (+480%)
Mutual labels:  player, media
React Player
A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia and DailyMotion
Stars: ✭ 5,931 (+39440%)
Mutual labels:  player, media
Srgmediaplayer Apple
An advanced media player library, simple and reliable
Stars: ✭ 123 (+720%)
Mutual labels:  player, media
Vime
Customizable, extensible, accessible and framework agnostic media player. Modern alternative to Video.js and Plyr. Supports HTML5, HLS, Dash, YouTube, Vimeo, Dailymotion...
Stars: ✭ 1,928 (+12753.33%)
Mutual labels:  player, media
Flutter ijkplayer
ijkplayer for flutter
Stars: ✭ 703 (+4586.67%)
Mutual labels:  player, media
Libvlc Go
Go bindings for libVLC and high-level media player interface
Stars: ✭ 188 (+1153.33%)
Mutual labels:  player, media
Xamarinmediamanager
Cross platform Xamarin plugin to play and control Audio and Video
Stars: ✭ 647 (+4213.33%)
Mutual labels:  player, media
Pandoraplayer
🅿️ PandoraPlayer is a lightweight music player for iOS, based on AudioKit and completely written in Swift.
Stars: ✭ 1,037 (+6813.33%)
Mutual labels:  player, media
Pbjvideoplayer
▶️ video player, simple way to play and stream media on iOS/tvOS
Stars: ✭ 620 (+4033.33%)
Mutual labels:  player, media
React Native Jw Media Player
React-Native Android/iOS bridge for JWPlayer SDK (https://www.jwplayer.com/)
Stars: ✭ 76 (+406.67%)
Mutual labels:  player, media
Flutter Assetsaudioplayer
Play simultaneously music/audio from assets/network/file directly from Flutter, compatible with android / ios / web / macos, displays notifications
Stars: ✭ 458 (+2953.33%)
Mutual labels:  player, media
Monstercat Visualizer
A real time audio visualizer for Rainmeter similar to the ones used in the Monstercat videos.
Stars: ✭ 571 (+3706.67%)
Mutual labels:  player, media
Freemp
Free Media Player (FreeMp)
Stars: ✭ 97 (+546.67%)
Mutual labels:  player, media
Ktvhttpcache
A powerful media cache framework.
Stars: ✭ 2,113 (+13986.67%)
Mutual labels:  player, media

Reactjs Media

License: MIT Npm package total downloads version Sponsor On Patreon

The reactjs media is a react package with awesome HTMLMediaElements that are recreated into react components with a good looking UI and fast UX.

Note: We recommend installing new version v2.x.x. It has a new video player and is more stable. You should also be using latest versions of react.

It includes currently only has a video and audio component.

Available components:

  • Image
  • Video
  • Audio
  • Youtube Player
  • Facebook player

Sound Cloud player is soon Comming

Installation

To install go to your terminal and run this script

# npm
$ npm install reactjs-media
# yarn
$ yarn add reacttjs-media

If your see no error then is is Installed.

Setup

In here we shall show a small demo on how to setup a simple video component. We shall create the default component.

Using new player in version 2

import React from 'react';
import { Video } from 'reactjs-media';

const App = () => {
    return (
        <div>
            <MyVideo />
        </div>
    )
}

const MyVideo = () => {
    return (
        <>
        <div>
            <Video
                src='https://www.example.com/myvideo.mp4'
                poster='/poster.png'
            />
        <div/>
        </>
    )
}

Using old player in version 1

import React from 'react';
import { ReactVideo } from 'reactjs-media';

const App = () => {
    return (
        <div>
            <MyVideo />
        </div>
    )
}

const MyVideo = () => {
    return (
        <>
        <div>
            <ReactVideo
                src='https://www.example.com/myvideo.mp4'
                poster='/poster.png'
            />
        <div/>
        </>
    )
}

Note: The ReactVideo component will be removed in future versions of the package starting with veersion 3

Try it on Codesandbox

A few important props you can pass are here:

Prop type Function
src string : Required This is the source of the video you want to display a it will be placed in the <source /> tag.
poster string: This is the poster os the video
className string The class of the video
onPlay fuction It takes in a function and you can use it how you want
onPause fuction It also takes in a function and you can use it how you want
onTimeUpdate function It is triggered when the video is playing. It passes in 3 arguments. An event, currentTime, and the percentage finished.

If you want to learn more on how to customize it. Checkout the offical Documentation


Sponsoring

You can sponsor this project in two ways. Using Patreon Patreon profile link: https://patreon.com/jimjunior

Purchase interserver cloud hosting for $0.01 using our coupon.

coupon: sponsorreactjsmedia You will get a discount off the first month and pay only $0.01. Visit interserver here


This package is developed by Beingana Jim Junior a fullstack Developer. The source code can be found on Github. Anybody interested is free to contribute.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].