accessible-html5-video-player icon indicating copy to clipboard operation
accessible-html5-video-player copied to clipboard

How to use the react version?

Open Kunoky opened this issue 7 years ago • 2 comments

When I tried to install the react module, unable to find the corresponding module

npm i PXvideo × Install fail! Error: GET http://registry.npm.taobao.org/PXvideo response 404 status

Kunoky avatar Mar 12 '18 03:03 Kunoky

Unfortunately at this point in time, we have not published this package to npm. You will have to manually get the file from the repo and use it.

The README has instructions on how to use the PXvideo player with react.

If you want to use one from npm, I would suggest using something https://www.npmjs.com/package/react-html5video

hozefaj avatar Mar 12 '18 04:03 hozefaj

You can install with: npm install --save git+https://github.com/paypal/accessible-html5-video-player.git

However, how to get it to work in react is anybodys guess, import { PXVideo } from "accessible-html5-video-player" or import PXVideo from "accessible-html5-video-player"

give error: Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

MrLehiste avatar Feb 20 '21 09:02 MrLehiste