Git Product home page Git Product logo

react-web-media-player's People

Contributors

azazi avatar jessy1092 avatar jrebecchi avatar maxmouchet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

react-web-media-player's Issues

CSS import compile error in NextJS app

I get the following compile error when i tried a to use the package in a NextJS project :

Failed to compile
./node_modules/react-web-media-player/es/components/Container.css
Global CSS cannot be imported from within node_modules.
Read more: https://nextjs.org/docs/messages/css-npm
Location: node_modules/react-web-media-player/es/components/Container.js
This error occurred during the build process and can only be dismissed by fixing the error.

NextJS has this limitation and actually requires that global CSS imports are done in a special file (_app.tsx) or via directives in a special <Head> component that can have a <link rel="stylesheet" ...>(like rect-helmet) in normal files.

setState reload player

I have some textarea in my code. When its onChange metod call function setState, value from textarea write to state and player reload

I use React Hooks and libery Material ui

const [value, setValue] = useState<string>("");

<TextareaAutosize maxLength={3000} className={classes.dictationTextArea} onChange={(e:any) => setValue(e.target.value)} disabled={isFinish ? true : false} />

Images in a Slideshow not Centred in Player

When using the player to display a slideshow, the images are not always centred. This is due to a simple bug in react-web-media-player/lib/components/Medias/Channels/Slideshow.js L173:

var margin = (height - imgHeight / imgWidth * width) / 2;

The lack of parentheses around the height - imgHeight & imgWidth * width calculations results in erroneous calculations for the leftMargin CSS property. This is addressed in #11

Support for Caption / Subtitle

Hi, I would like to know if React-Web-Media-Player has support to Caption or Subtitle. I've taken a look in the documentation and I didn't find anything about it.

If the player has accessibility features, I would like to know too.

I really appreciate any help you can provide.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.