player-iframe-video
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

player-iframe-video

Play vimeo video and more

demo: https://duongdam.github.io/player-iframe-video

Program

- Player Vimeo iframe embed
- Scroll to autoplay, stop this video
- Support to: Vimeo Iframe
- Continues support to: Youtube & more

Install

npm install --save player-iframe-video
yarn add player-iframe-video

Usage

import React from "react";
import IframePlayer from "player-iframe-video";
import "player-iframe-video/dist/index.css";
import "./index.css";

const App = () => {
  const iFrame = <iframe width="100%" height="100%"
                         src="https://player.vimeo.com/video/422883518?h=aee925f4ae&amp;badge=0&amp;autopause=0&amp;player_id=0&amp;app_id=58479&amp;loop=1"
                         frameBorder="0"
                         allow="autoplay; fullscreen; picture-in-picture"
                         allowFullScreen
                         title="test player iframe vimeo" />

  return <div className="root">
    <div className="divRoot">
      <IframePlayer id={"iframe-vimeo-player-test"} iFrame={iFrame} />
    </div>
  </div>;
};

export default React.memo(App);

License

MIT © duongdam

Readme

Keywords

none

Package Sidebar

Install

npm i player-iframe-video

Weekly Downloads

102

Version

1.0.3

License

MIT

Unpacked Size

409 kB

Total Files

10

Last publish

Collaborators

  • duong.dkp