1.0.8 • Published 6 years ago

mini-video v1.0.8

Weekly downloads
11
License
ISC
Repository
github
Last release
6 years ago

A mini video wrapper with an event manager

import miniVideo from 'mini-video'
var mVideo = miniVideo({
	autoplay: false,
	loop: true,
	volume: 1
})
mVideo.addTo(myDomElement)
mVideo.load(videoSrc, callback)

// Methods
play()
play(10) play on specific time
pause()
pause(10) pause on specific time
seek()
volume() get and set
currentTime() get and set
width()
height()

// Add-Remove Events
mVideo.on('ended', callback)
mVideo.off('ended', callback)

// Clear all events and destroy everything
mVideo.clear()
1.0.8

6 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago