jQuery Playback Progress Bar Plugin with Drag Support

Add-ons
2026-07-26 00:31 3 次浏览 • 0 次下载 3.2KB
jQuery Playback Progress Bar Plugin with Drag Support

Usage

Include jquery-PlayBar.js or jquery-playBar.min.js

Include barstyle.css

First, prepare a container for displaying the progress bar, for example:

1
<div clas="test"></div>

Initialization:

1
2
3
4
5
6
7
$.playBar.addBar($('.test'),1000*64);// The first parameter is the container for the player, and the second parameter is the duration in milliseconds
$.playBar.changeBarColor("#F60");// Set the progress bar color
$.playBar.changeFontColor("#fff")// Set the time display color
$.playBar.stop()// Stop the progress bar
$.playBar.Begin()// Start the progress bar
$.playBar.restTime(1000)// Reset the duration and restart playback
var t=$.playBar.getTheTime()// Get the current time


星河码客

发现和分享优质开源项目,传承互联网精神,为开发者服务。

关于本站

联系我们

微信/广告合作:ITcloub (备注星河码客)

免责声明:本站资源版权归原作者所有,仅供学习与交流。如有侵权,请通过「关于我们 - 侵权投诉」联系删除。

Powered by Nuxt · Deployed on Cloudflare