Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function loadAnnotation(notes) {
const playlist = WaveformPlaylist.init({
container: document.getElementById('playlist'),
timescale: true,
state: 'select',
samplesPerPixel: 3400,
zoomLevels: [1000, 2000, 3400, 4000],
colors: {
waveOutlineColor: '#E0EFF1',
timeColor: 'grey',
fadeColor: 'black',
},
annotationList: {
annotations: notes,
controls: actions,
editable: true,
isContinuousPlay: false,
linkEndpoints: true,