Ep – 38 – I Wanna Be A Fire EngineThe Time Spent Poorly Show
nbsp
// @todo move this to a separate enqueued file and use data attributes
document.addEventListener("DOMContentLoaded", function () {
(function ($) {
var sspUpdateDuration2;
// Create Player
window.ssp_player2 =
WaveSurfer.create({
container: '#waveform2',
waveColor: '#444',
progressColor: '#00d4f7',
barWidth: 3,
barHeight: 15,
height: 8,
hideScrollbar: true,
skipLength: 30,
backend: 'MediaElement'
});
//Set player track
window.ssp_player2.track = '
38-i-wanna-be-a-fire-engine.mp3';">https://www.timespentpoorly.fun/podcast-player/1593/ep-
38-i-wanna-be-a-fire-engine.mp3';
/**
* Setting and drawing the peaks seems to be required for the 'load on play' functionality to work
*/
//Set peaks
window.ssp_player2.backend.peaks = [0.0218, 0.0183, 0.0165, 0.0198, 0.2137, 0.2888, 0.2313, 0.15, 0.2542, 0.2538, 0.2358, 0.1195, 0.1591, 0.2599, 0.2742, 0.1447, 0.2328, 0.1878, 0.1988, 0.1645, 0.1218, 0.2005, 0.2828, 0.2051, 0.1664, 0.1181, 0.1621, 0.2966, 0.189, 0.246, 0.2445, 0.1621, 0.1618, 0.189, 0.2354, 0.1561, 0.1638, 0.2799, 0.0923, 0.1659, 0.1675, 0.1268, 0.0984, 0.0997, 0.1248, 0.1495, 0.1431, 0.1236, 0.1755, 0.1183, 0.1349, 0.1018, 0.1109, 0.1833, 0.1813