
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
ac-recorder
Advanced tools
Based on MediaRecorder and AudioContext implementation, it can record audio and canvas on the web page and generate a video file to download locally.
基于 MediaRecorder 和 AudioContext 实现,能够录制网页上的 audio 和 canvas,生成一个视频文件下载到本地。 Based on MediaRecorder and AudioContext implementation, it can record audio and canvas on the web page and generate a video file to download locally.
🔗 支持 Chrome 🔗 支持 Safari(实测效果更好)
实例化参数: constructor(targetAudio, targetCanvas)
.setOptions()
.createRecorder()
.start()
.pause()
.resume()
.stop()
.preview()
.closePreview()
.download()
.changeAudio()
import { ACRecorder } from "./index.js";
let ACR = new ACRecorder(document.querySelector("#audio"), "#canvas");
ACR.setListeners({
start: () => {...},
fail: () => {...},
pause: () => {...},
resume: () => {...},
stop: () => {...}
});
ACR.start();
ACR.pause();
ACR.resume();
ACR.stop();
ACR.preview();
ACR.closePreview();
ACR.download();
ACR.destroy();
new AudioContext()
必须在某个用户操作之后执行,否则会出现“The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page”警告,导致音频无法播放。
FAQs
Based on MediaRecorder and AudioContext implementation, it can record audio and canvas on the web page and generate a video file to download locally.
The npm package ac-recorder receives a total of 2 weekly downloads. As such, ac-recorder popularity was classified as not popular.
We found that ac-recorder 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.