React Structural Metadata Editor component which allows a user to interact with structural metadata, adding, editing and deleting headers and timespans. Also presents a visual waveform representation of the work audio file, for help in navigating and identifying sections of the waveform.
This PR adds the ability to display contents in a IIIF Manifest when there is no waveform data specified.
For this we are using multiple options provides by Peaks.js;
For smaller media files (duration < 10 mins): use webAudio option in Peaks.js to pass a AudioContext instance, where it uses WebAudio API to generate waveform data on the fly
For larger files: use waveformData option to pass a JSON object containing random waveform data we create using waveform-data library, since it takes a while to generate waveform data for larger files using WebAudio API.
This PR adds the ability to display contents in a IIIF Manifest when there is no waveform data specified.
For this we are using multiple options provides by
Peaks.js
;webAudio
option inPeaks.js
to pass a AudioContext instance, where it usesWebAudio API
to generate waveform data on the flywaveformData
option to pass a JSON object containing random waveform data we create using waveform-data library, since it takes a while to generate waveform data for larger files usingWebAudio API
.Waveform with random generated data: