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 🙏

© 2026 – Pkg Stats / Ryan Hefner

xl-video-player

v1.0.11

Published

基于萤石云 和jessibuca5.6.2 再封装视频播放器

Downloads

3

Readme

xl-video-player

npm 安装

npm install xl-video-player -S

使用

main.js 文件

import xlVideoPlayer from "xl-video-player/lib/xl-video-player.umd"; import "xl-video-player/lib/xl-video-player.css"; Vue.use(xlVideoPlayer);

index.html 文件

需要在 index.html 文件同级目录 public 目录下放入 decoder.js、decoder.wasm、jessibuca.js 三个文件, 并且在 index.html 中引入播放器包文件

页面使用

本地安装

把 lib 文件夹拷贝到项目 components(或者别的文件夹下), 例如:拷贝到 components 文件夹下

使用

main.js 文件

import xlVideoPlayer from "./components/lib/xl-video-player.umd"; import "./components/lib/xl-video-player.css"; Vue.use(xlVideoPlayer);

index.html 文件

需要在 index.html 文件同级目录 public 目录下放入 decoder.js、decoder.wasm、jessibuca.js 三个文件, 并且在 index.html 中引入播放器包文件

页面使用

入参关键字说明

| 参数 | 说明 | 类型 | 可选值 | 默认值 | | :------------------: | :--------------------------------------: | :----: | :-----------------: | :----: | | videoCfg | 视频配置对象 | Object | - | - | | videoCfg.sourceType | 视频标志 | String | "1":萤石云;"2":本地 | "1" | | videoCfg.accessToken | 萤石云 token,sourceType==="1"时生效 | String | - | - | | videoCfg.appKey | 萤石云 appKey,sourceType==="1"时生效 | String | - | - | | videoCfg.serverAddr | 媒体服务器 ip,sourceType==="2"时生效 | String | - | - | | videoCfg.apiAddr | 媒体服务器 API ip,sourceType==="2"时生效 | String | - | - | | videoCfg.mediaSecret | 媒体服务器 secret,sourceType==="2"时生效 | String | - | - | | videoInfo | 视频对象 | Object | - | - | | videoInfo.deviceSn | 萤石云播放时的 sn 号 | String | - | - | | videoInfo.channel | 萤石云播放时的 channel | String | - | - | | videoInfo.sipId | 本地播放时的 nvr_dev_id | String | - | - | | videoInfo.childSipId | 本地播放时的 ipc_dev_id | String | - | - | | playType | 视频类型 | String | "live"/"rec" | "live" |

更新记录:

v1.0.8 版本更新

优化录播播放起止时间问题,拖动进度条播放优化

v1.0.7 版本更新

接口 secret 校验拼接在 url 上

v1.0.6 版本更新

接口增加 secret

v1.0.5 版本更新

修改 api 路径,接口入参兼容云平台修改

v1.0.3 版本更新

请求依据后端要求变成 string 对象

v1.0.2 版本更新

videoCfg.apiAddr 判断是否包含 http

v1.0.1 版本更新

将图标全部打包成 base64

修改请求体封装

v1.0.0 版本更新

项目初始化