
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
VZANPlayer 是 微赞播放器 的主入口,通过 new VZANPlayer() 方法可以创建一个支持音视频播放的媒体对象。
启动本地调试
npm run dev打包 JS SDKnpm run build生成文档npm run docs
| 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 | 参数 | 说明 |
|---|---|---|
| clearLoading | 空 | 清除视频 loading 样式 |
| loading | 空 | 显示视频 loading 样式 |
| hideBar | 空 | 隐藏播放控制栏 |
| showBar | 空 | 显示播放控制栏 |
| hideSpeed | 空 | 关闭 倍速控制 按钮 |
| showSpeed | 空 | 开启 倍速控制 按钮 |
| toggleBar | 空 | 切换 播放控制栏显示与隐藏 |
FAQs
vzan player
The npm package vzanplayer receives a total of 5 weekly downloads. As such, vzanplayer popularity was classified as not popular.
We found that vzanplayer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.