All Projects β†’ benwiley4000 β†’ win95-media-player

benwiley4000 / win95-media-player

Licence: MIT license
πŸ’Ώ Back from 1995, and running on your website

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to win95-media-player

Cassette
πŸ“Ό A flexible media player component library for React that requires no up-front config
Stars: ✭ 171 (+205.36%)
Mutual labels:  react-component, media-player
react-jsonschema-form-layout
Simple Layout Field to offer a variety possibilities to react-jsonschema-forms
Stars: ✭ 67 (+19.64%)
Mutual labels:  react-component
histoslider
πŸ“Š A D3 based histogram slider component for React.
Stars: ✭ 31 (-44.64%)
Mutual labels:  react-component
react-native-stateview
A react native wrapper view to add loading, content, error and placeholder states to your component
Stars: ✭ 28 (-50%)
Mutual labels:  react-component
Flyleaf
Media Player .NET Library for WPF/WinForms (based on FFmpeg/DirectX)
Stars: ✭ 323 (+476.79%)
Mutual labels:  media-player
react-circle-flags
πŸš€ A React component with a collection of 300+ minimal circular SVG country flags. Wrapper of HatScripts/circle-flags
Stars: ✭ 29 (-48.21%)
Mutual labels:  react-component
mpc-qt
Media Player Classic Qute Theater
Stars: ✭ 125 (+123.21%)
Mutual labels:  media-player
Helia
Media Player & IPTV & Digital TV ( DVB, ATSC, DTMB, ISDB )
Stars: ✭ 24 (-57.14%)
Mutual labels:  media-player
hifiberry
This is a custom component to allow control of HifiberryOS devices in Home Assistant using the audiocontrol2 REST API.
Stars: ✭ 26 (-53.57%)
Mutual labels:  media-player
react-accessible-modal
Accessible modal dialog component for React
Stars: ✭ 17 (-69.64%)
Mutual labels:  react-component
react-markdown-heading
Render markdown table of contents as React component.
Stars: ✭ 18 (-67.86%)
Mutual labels:  react-component
animation-wrapper-view
Declarative animations with imperative controls for RN/RNW.
Stars: ✭ 53 (-5.36%)
Mutual labels:  react-component
slingr
A simple CLI for UPnP media file streaming
Stars: ✭ 32 (-42.86%)
Mutual labels:  media-player
Rise-Media-Player
One media player for everything you own or stream; whether it's music or videos, online or offline Rise Media Player does it all. And it's beautiful and native with the latest version of WinUI.
Stars: ✭ 600 (+971.43%)
Mutual labels:  media-player
create-chakra-icons
Transform SVGs to React Chakra UI <Icon /> ✨
Stars: ✭ 80 (+42.86%)
Mutual labels:  react-component
react-material-datetimepicker
Material DateTime Picker для React.js
Stars: ✭ 12 (-78.57%)
Mutual labels:  react-component
react-async-button
React button component for handling async actions
Stars: ✭ 31 (-44.64%)
Mutual labels:  react-component
delete-react-zombies
CLI to search and delete unimported 🧟components in your react βš›οΈ files
Stars: ✭ 70 (+25%)
Mutual labels:  react-component
react-simple-range
πŸ”‰ React slider component for inputting a numeric value within a range.
Stars: ✭ 20 (-64.29%)
Mutual labels:  react-component
react-fusionui
☒️ Nuclear power-up for your UI.
Stars: ✭ 13 (-76.79%)
Mutual labels:  react-component

Please note that open-source maintenance is not my main focus at the moment.

I will not be investing significant effort in the very near future to review and address issues on this repository. However I do want my software to be useable!

If you have an issue that must be resolved for your work, please open a pull request to fix it, and send me a direct email to make sure that I see it. I ignore most messages from GitHub these days.

I'm also happy to help out if you have a question about how to use the library.

My email can be found at the top of this commit.

Keep in mind that I have a full-time job and a personal life as well as other hobbies that have taken priority over open source, so I might not respond immediately. But don't hesitate to follow up after a few days if you think I've missed your email.

Win95 Media Player

A React media player component inspired by the Media Player app that shipped with Windows 95 (one of the early versions of Windows Media Player).

Works on the web, in an Electron app, or anywhere ReactDOM will run!

See it live!

Under the hood we rely on two React component libraries:

install

npm install win95-media-player

quick start

The first thing you need is a working React application. If you don't have one, you can try create-react-app to skip all the annoying parts of setting one up.

After that, adding Win95 Media Player to your app is simple!

Assuming you have this in your html...

<style>
  .player {
    /* width can be anything, this is just a suggestion */
    width: 350px;
  }
</style>
<div id="app"></div>

Just run this JavaScript:

// JavaScript
import React from 'react';
import ReactDOM from 'react-dom';

import { MediaPlayer } from 'win95-media-player';

const playlist = [
  {
    url: 'https://archive.org/download/CC1301_windows_95/CC1301_windows_95_512kb.mp4',
    title: 'Computer Chronicles - Windows 95'
  }
];

ReactDOM.render(
  <MediaPlayer
    className="player"
    playlist={playlist}
    showVideo
    fullscreenEnabled
  />,
  document.getElementById('app')
);

And you should have a working MediaPlayer on your page! It should look something like this.

api

MediaPlayer

A fully-functional media player component. Accepts all the props accepted by MediaPlayerUI and Cassette's PlayerContextProvider

MediaPlayerUI

The UI component used by MediaPlayer. If you're building a more complex media player app with Cassette, you can render this directly inside of a React tree wrapped by a PlayerContextProvider to hook into the surrounding playerContext.

props

Prop name Prop type Default value Description
getDisplayText Function track => track.title Receives a track object (or undefined if none is active) and returns a string of display text
showVideo Boolean false A boolean which must be set true to display video
fullscreenEnabled Boolean false If set true, adds a maximize button to the title bar which will trigger fullscreen mode
className String An optional CSS class name to pass to the outer window div
style Object An optional React style object to pass to the outer window div

special thanks

@felixrieseberg's windows95 app allowed me to play around with the real Windows 95 Media Player so I could extract the concept for this project.

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].