12345678910111213141516171819202122232425262728293031 |
- //let playingData;
- // List of values indexed by 1/100 of milliseconds.
- // Faster to retreieve because array access is O(1).
- //let timedPlayingData = [];
- let globalState = new StateManager();
- globalState.init('clips', []);
- globalState.init('playingClip', null);
- globalState.init('playbackTime', 0);
- globalState.init('previewClip', null);
- globalState.init('playing', false);
- globalState.init('transcript', null);
- /*
- globalState.init('windowSize', {
- height: window.innerHeight,
- width: window.innerWidth
- })
- window.addEventListener('resize', evt => {
- globalState.set('windowSize', {
- height: window.innerHeight,
- width: window.innerWidth
- })
- });
- */
|