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

@polyv/live-watch-sdk

v1.11.0

Published

SDK for creating a live stream viewing page using Polyv's services.

Downloads

136

Readme

保利威观看页 SDK

介绍

保利威观看页 SDK 是由保利威开发团队提供的直播观看页软件开发工具包,它包含直播观看应用的常见功能模块,如播放器、聊天室、连麦等。

需要注意的是,该 SDK 是一个 逻辑层 SDK,仅提供底层逻辑的封装,与具体的框架或界面无关。这意味着它可以在任何框架中使用,如 Vue.js、React、AngularJS 等。

优点

  • 保利威 SaaS 直播观看页也是基于观看页 SDK 进行开发,故观看页 SDK 的功能是完整的。
  • 采用现代化前端工程理念进行开发,提供 TypeScript 类型声明文件。
  • 提供功能完整的开源项目(基于 Vue.js 2.7 开发),开发人员可以基于该项目进行二次开发。

使用方式

观看页 SDK 提供 npm、CDN 两种方式引入,开发者可根据自身需求选择其中一种方式引入 SDK 到项目中。

方式一:npm(推荐)

安装 SDK

npm install @polyv/live-watch-sdk --save

引入 SDK

import { createWatchCore } from '@polyv/live-watch-sdk';

方式二:CDN

安装 SDK

<!-- 通过版本号引入 -->
<script src="https://websdk.videocc.net/live-watch-sdk/{version}/lib/polyv-live-watch.umd.js"></script>
<!-- 使用最新版本引入 -->
<script src="https://websdk.videocc.net/live-watch-sdk/latest/lib/polyv-live-watch.umd.js"></script>

引入 SDK

通过 CDN 引入观看页 SDK 后,会挂在一个 window 全局对象 PolyvLiveWatchSDK,通过该全局对象获取观看页 SDK 暴露的 Api。

<script>
  const { createWatchCore } = window.PolyvLiveWatchSDK;
</script>

更多信息