Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
ar-share-screen
Advanced tools
Readme
anyRTC为web端提供的捕获屏幕共享SDK。
npm 市场
npm install ar-share-screen --save-dev
import getScreenStream from "ar-share-screen";
npm install ar-share-screen@latest --save-dev
import getScreenStream from 'ar-share-screen';
js 引用
前往SDK 下载页面,ctrl+s
或command+s
保存到本地
引用
<!-- 先再头部引入样式 -->
<script src="路径/ArShareScreen.版本号.js"></script>
示例
getScreenStream.then(e => {
if (e === 'no-ready') {
alert(
'1. 请检查是否安装"anyRTC-ScreenShare"屏幕共享插件,如果没有请点击https://chrome.google.com/webstore/detail/anyrtc-screenshare/daiabbkkhgegdmhfpocaakcgbajnkgbp?hl=zh-CN下载\n' +
'2. 安装了屏幕共享插件,但是没有启用该插件。\n' +
'说明:\n火狐浏览器或谷歌版本72以上无需安装插件。\n' +
'360、QQ平台也有对应的插件下次。');
//结合SDK closeShare
}
else if (e === 'no-support') {
alert(`该浏览器不支持,请选择谷歌、火狐、QQ、360浏览器`);
//结合SDK closeShare
}
else if (e === "user-cancel") {
alert(`共享被取消`);
//结合SDK closeShare
}
else if (e === "user-Denied") {
alert(`用户未授权`);
//结合SDK closeShare
}
else {
//预览屏幕共享流 e.video
let screenSteam = e.stream;
//预览
let screenView = document.createElement('div');
screenView.id = "myScreen";
screenView.appendChild(e.video);
document.body.appendChild(screenView);
//结合SDK 发布媒体流
}
}).catch(err => {
console.log('error', `获取屏幕共享流失败`);
//结合SDK closeShare
throw new Error(err);
});
说明 获取屏幕共享流。
Version 3.0.1 (2019-05-27)
Version 3.0.0 (2019-01-18)
FAQs
Capturer your screen stream, work with anyRTC SDK.
The npm package ar-share-screen receives a total of 29 weekly downloads. As such, ar-share-screen popularity was classified as not popular.
We found that ar-share-screen 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.