import EZopenPlayer from '@ezuikit/player-ezopen';
import PlayerPluginRecord from '@ezuikit/player-plugin-record';
// 播放地址 url 和 accessToken 从下面地址获取
// https://open.ys7.com/console/device.html
const player = new EZopenPlayer({
id: 'app',
url: 'ezopne player url',
accessToken: 'accessToken',
width: 600,
height: 400
});
const recordPlugin = new PlayerPluginRecord(); // 录制插件
player.use(recordPlugin);
recordPlugin.startRecord();
// recordPlugin.stopRecord()
@ezuikit/player-plugin-record
8.1.1-beta.1 • Public • PublishedDependencies (0)
Dev Dependencies (2)
Package Sidebar
Install
npm i @ezuikit/player-plugin-record
Weekly Downloads
29
Version
8.1.1-beta.1
License
MIT
Unpacked Size
3.08 MB
Total Files
6