Skip to content

A HTML5 video player with Zoom-in and Zoom-out functionality

Notifications You must be signed in to change notification settings

UsamaButtPython/React-Video-Player

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Video player

This player has the functionality to zoom-in and zoom-out with the mouse wheel and slider.

Installation

Use the package manager npm to install react-zoom-pan-pinch.

npm i react-zoom-pan-pinch

react-zoom-pan-pinch

import { TransformWrapper, TransformComponent } from "react-zoom-pan-pinch";

<TransformWrapper>
   <TransformComponent>
      <video id="video" ref={videoEl} src={videolink} onLoadedMetadata={initializeVideo} muted autoPlay></video>
   </TransformComponent>
</TransformWrapper>

How to use video player

Just save it as a component in your code then,

import VideoPlayerNew from './VideoPlayerNew';

<VideoPlayerNew src="http://upload.wikimedia.org/wikipedia/commons/7/79/Big_Buck_Bunny_small.ogv"/>

Preview

Preview image

Contributing

To build player in js:

https://freshman.tech/custom-html5-video/

To review library:

https://www.npmjs.com/package/react-zoom-pan-pinch

For zoom using input type range (slider):

https://codesandbox.io/s/loving-mccarthy-2ejsz?file=/src/App.js:0-2852

About

A HTML5 video player with Zoom-in and Zoom-out functionality

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published