Giter Site home page Giter Site logo

cr-template's Introduction

This is a basic project template for ractive-player.

Installation

Clone this repository, then do

npm install
npm start

Recording

Click on the recording (circle) icon in the controls.

Select Markers for recording (to record Audio, you must access the page over HTTPS). Use the keyboard command to start/stop recording. Then:

  1. Save the audio file (if any) to audio/audio.webm.

  2. Copy the markers to src/markers.ts.

  3. Copy the code recording to src/recordings.ts.

Replaying

To view the code recording, change src/production/media-url.ts to export ".". (Once you are satisfied with your recording, you should upload your audio files to a static assets host and put that as the media URL instead.) Then compile in production mode:

NODE_ENV=production webpack

Mastering

See the Mastering guide for how to fix the browser recording (which doesn't come with the metadata needed for seeking) and convert it to mp4.

To generate thumbnail previews for the ractive, use rp-master thumbs. These should again be uploaded to your static assets host.

To produce a static rendering of the ractive, use rp-master render.

Tips

Beware that @env is a magic directory that refers to either src/development or src/production depending on NODE_ENV. This is specified in webpack.config.js.

cr-template's People

Contributors

ysulyma avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.