streamcanvasx
TypeScript icon, indicating that this package has built-in type declarations

0.2.10 • Public • Published

组件功能描述

Install

$ npm i streamcanvasx --save

Usage

import { createMainPlayerInstance } from 'streamcanvasx/es2017/serviceFactories/index';

const streamPlayer = createMainPlayerInstance({ canvas_el: canvas_ref?.current!, root_el: video_box.current! });

streamPlayer?.createFlvPlayer({
      type: 'flv', // could also be mpegts, m2ts, flv
      isLive: true,
      url: url,
  });

音频可视化化

import { createAudioProcessingServiceInstance, createMainPlayerInstance } from 'streamcanvasx/es2017/serviceFactories/index';

const streamPlayer = createMainPlayerInstance({ vedio_el, canvas_el });

streamPlayer?.createFlvPlayer({
      type: 'flv', // could also be mpegts, m2ts, flv
      isLive: true,
      url: url,
  });


const audio_process = createAudioProcessingServiceInstance({ media_el: veido_flv_ref.current!, canvas_el: canvas_audio_ref.current! });

audio_process.updateBufferData();
audio_process.drawWithBufferData();

Readme

Keywords

Package Sidebar

Install

npm i streamcanvasx

Weekly Downloads

33

Version

0.2.10

License

MIT

Unpacked Size

14 MB

Total Files

754

Last publish

Collaborators

  • break_happy
  • sylsyl000