Skip to content

sureshpandiyan1/htmlvideoplayerjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

htmlvideoplayerjs

htmlvideoplayerjs is just simple plugin for making your video have some controls.

if you like it, give a star ★

npm

https://www.npmjs.com/package/htmlvideoplayerjs

first you should read this below

# PLEASE USE LATEST NPM PACKAGE

NOTE: it's supports only mp4, not other formats
<format for htmlvideoplayer js>
htmlvideoplayerjs(folderpath,tid,width,height,videoid,url)

folderpath => htmlvideoplayer js need a icons, you can download from github repo [folder name: icons ] and copy and paste into your folder ('images') EXAMPLE : ./<yourfolderpath>/<just copy all icons into myiconpath>
you can name your folder whatever you want, but you must pass the full path where icons located on your project'

tid => target id  ('thevideo')
width => video width ('400')
height => video height ('auto')
videoid => should be unique id ('video')
url => video source file path ('beautifulcity.mp4')

how to use it

// first you need to download icons  from github repo - [foldername: icons]
// second, you should to download stylesheet for htmlvideoplayerjs from github repo - [foldername: playerstyles]

// we want to make sure all things loaded properly for htmlvideoplayerjs

import htmlvideoplayer from 'htmlvideoplayerjs'


const myvideo = htmlvideoplayer
myvideo('images', 'thevideo', '400','auto', 'video', 'beautifulcity.mp4')

license

Unlicense

copyright

copyright @ htmlvideoplayerjs