
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
live-broadcast-the-component1
Advanced tools
首先在小程序代码根目录(project.config.json中miniprogramRoot配置的目录)中依次执行:
npm init
npm i live-broadcast-the-component -S --production //安装组件
要在小程序中使用第三方npm组件 构建npm时必须要在小程序根目录的 project.config.json中设置
"packNpmManually": true,
"packNpmRelationList": [
{
//小程序根目录的package.json
"packageJsonPath": "./package.json",
//生成的miniprogram_npm的位置
"miniprogramNpmDistDir": "./"
}
],
首先,在开发者工具的项目配置中开启使用npm模块,然后执行“工具-构建npm”操作,成功后会产出一个miniprogram_npm/文件夹,这个文件夹是可以在开发者工具中看到的,到这一步npm包才算真的安装成功,可以在小程序项目中正常调用 miniprogram_npm/`文件夹。
组件的引用 使用页面中的json文件中引入
在页面中使用
传入mediaPath (字符串) 直播的推流地址 在真机调试中可以看到直播详情
传入giveLike (布尔值) 显示点赞功能
传入num(可选 默认值为0) 点击次数 会出现点赞效果
FAQs
首先在小程序代码根目录(project.config.json中miniprogramRoot配置的目录)中依次执行:
We found that live-broadcast-the-component1 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.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.