/gdy-rrweb-plugin

Normal web record & replay plugin

Primary LanguageJavaScriptISC LicenseISC

gdy-rrweb-plugin

An automated capture reporting tool based on the RRweb open-source project

New matched server-side: https://github.com/corcd/egg-rrweb-server

Old matched server-side: https://github.com/corcd/rrweb-server

Install

NPM

npm install gdy-rrweb-plugin --save
yarn add gdy-rrweb-plugin
import RRgdy from 'gdy-rrweb-plugin'

Resource

  1. Download dist/gdy-rrweb.min.js to location
  2. Use script to import file
<html>
<head>
  <meta charset="UTF-8">
  <title>report test</title>
  <script src="../dist/gdy-rrweb.min.js"></script>
</head>

Usage

import RRgdy from 'gdy-rrweb-plugin'

const rrgdy = new RRgdy(uin, 'xxxx', 'url')

record

rrgdy.record()

stop

rrgdy.stop()

export

rrgdy.export('url')

restore

rrgdy.restore('binaryString')

replay

rrgdy.replay()

License

ISC