npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vzanplayer

v1.0.49

Published

vzan player

Downloads

2

Readme

微赞播放器

http://testvt.vzan.com/vzanplayer/docs/image/preview.png

VZANPlayer 是 微赞播放器 的主入口,通过 new VZANPlayer() 方法可以创建一个支持音视频播放的媒体对象。

启动&打包

启动本地调试 npm run dev 打包 JS SDK npm run build 生成文档 npm run docs

登录私服

npm login --registry=https://nexus.vzan.com:443/repository/npm-vzan/

账号密码

vzan vzan1688

发布到私服

npm publish --registry=https://nexus.vzan.com:443/repository/npm-vzan/

简易教程

快速跑通 Demo

播放 API

| API | 参数 | 说明 | | ---- | ---- | ---- | | mute | 空 | 静音 | | unmute | 空 | 取消静音 | | isFullscreen | 空 | 获取播放全屏状态 | | enterFullScreen | 空 | 唤起全屏 | | exitFullScreen | 空 | 退出全屏 | | destroy | 空 | 销毁播放器 | | width | 空 | 获取播放器宽度 | | height | 空 | 获取播放器高度 | | on | 空 | 添加事件监听 | | emit | name 事件名称 value 事件传递 | 触发事件 | | off | name 事件名称 listerner事件回调(传空 则移除所有监听) | 解绑事件 取消事件监听 | | currentTime | 秒数(Number) | 获取、设置当前播放时间 单位:秒 | | play | 空 | 播放 | | pause | 空 | 暂停 | | toggle | 空 | 播放/暂停切换 | | seek | 秒数(Number) | 快进播放 | | setSpeed | 倍数值 0.5,1,1.5,2 | 设置播放倍速 | | setVolume | 0 ~ 1 | 设置音量 | | version | version | 当前版本号 | | initConifg | 空 | 初始化 options 设置 | | switchVideo | url | 切换播放地址 | | setLiveState | 是否为直播中(Boolean) | 显示直播状态控制栏 | | duration | 空 | 获取总时长,秒数(Boolean) |

控制栏 API

| API | 参数 | 说明 | | ---- | ---- | ---- | | clearLoading | 空 | 清除视频 loading 样式 | | loading | 空 | 显示视频 loading 样式 | | hideBar | 空 | 隐藏播放控制栏 | | showBar | 空 | 显示播放控制栏 | | hideSpeed | 空 | 关闭 倍速控制 按钮 | | showSpeed | 空 | 开启 倍速控制 按钮 | | toggleBar | 空 | 切换 播放控制栏显示与隐藏 |

媒体事件监听