Skip to content

Commit 36b7e4f

Browse files
authored
Update README.md
1 parent 6108b24 commit 36b7e4f

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@ var ckf = new CodeKeyframes({
2222
progressColor: '#0c9fa7',
2323
bgColor: '#222',
2424
label: 'Text that appears at the top left of the waveform.',
25-
keyframes:[] // paste in after exporting keyframes
25+
keyframes: [], // paste in after exporting keyframes
26+
autoplay: false, // doesn't always work due to browser limitations
27+
onCanPlay: function(){
28+
// playback can start now
29+
// call this to start playback:
30+
// ckf.wavesurfer.play()
31+
}
2632
})
2733
```
2834

@@ -41,8 +47,8 @@ Make sure you click the waveform before using keyboard controls. This choice was
4147
`Up & Down` : Zoom waveform<br>
4248
`Space` : Play / Pause<br>
4349
`Enter` : Add keyframe<br>
44-
`Page Up & Page Down` : Jump between keyframes
45-
`[ and ]` : Jump between keyframes
50+
`Page Up & Page Down` : Jump between keyframes<br>
51+
`[ and ]` : Jump between keyframes<br>
4652
`Alt + Left or Right` : Nudge active keyframe
4753

4854
## Acknowledgements

0 commit comments

Comments
 (0)