@ezuikit/player-plugin-record
TypeScript icon, indicating that this package has built-in type declarations

8.1.8-beta.4 • Public • Published

@ezuikit/player-plugin-record

录制视频插件

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()

录制视频底层转码库

libSystemTransform.js 文件源码内容来自 libSystemTransformWASM.js, 当前文件不允许手动修改, 必须要在项目根目录下执行 node ./convert.js 生成

node ./convert.js

备注: 如果底层录制库需要更新, 请替换 libSystemTransformWASM.js 就可以了, libSystemTransform.js 会自动生成

备注: 如果底层录制库需要更新, 请替换 libSystemTransformWASM.js 就可以了, libSystemTransform.js 会自动生成

备注: 如果底层录制库需要更新, 请替换 libSystemTransformWASM.js 就可以了, libSystemTransform.js 会自动生成

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i @ezuikit/player-plugin-record

    Weekly Downloads

    556

    Version

    8.1.8-beta.4

    License

    MIT

    Unpacked Size

    3.08 MB

    Total Files

    6

    Last publish

    Collaborators

    • freeshine
    • ezviz-openteam
    • ezviz-jzy