Recording and Playback for Bespoke.js
Record and replay Bespoke.js slide interactions from local storage and JSON data.
This plugin is shipped in a UMD format, meaning that it is available as a CommonJS/AMD module or browser global.
For example, when using CommonJS modules:
var bespoke =vcr = ;bespoke;
When using browser globals:
Press 'R' on your keyboard to toggle recording. Press 'S' to stop recording. Press 'P' to play the latest recording.
Recordings are saved to local storage and persist between page loads.
Generating JSON Recordings
To see JSON representations of recordings, run one of the following commands in your console:
// Latest recording:vcr;// All recordings:vcrall;
Loading JSON Recordings
Recordings can be provided on load via the 'recording' option:
Press 'P' to start the saved recording.
The default remote uses the 'R', 'P' and 'S' keys.
To override this behavious, pass a 'remote' function via the options object:
$ npm install bespoke-vcr
$ bower install bespoke-vcr
This plugin was built with generator-bespokeplugin.