FleetCast Episode 1

FleetCast Episode 1
FleetCast

 
 
00:00 / 43:04
 
1X
 
/ 60); var seconds = sec_num - (hours * 3600) - (minutes * 60); if (hours < 10) {hours = "0"+hours;} if (minutes < 10) {minutes = "0"+minutes;} if (seconds < 10) {seconds = "0"+seconds;} return hours > 0 ? ( hours+':'+ minutes+':'+seconds) : (minutes+':'+seconds); } jQuery( document ).ready( function($){ (function($){ var sspUpdateDuration1; window.ssp_player1 = WaveSurfer.create({ container: '#waveform1', waveColor: '#444', progressColor: '#00d4f7', barWidth: 3, barHeight: 15, height: 2, hideScrollbar: true, skipLength: 30, backend: 'MediaElement' }); window.ssp_player1.load('https://podcast.englandlogistics.com/podcast-player/48/fleetcast-episode-1.mp3'); window.ssp_player1.on( "error", function( e ){ /*_paq.push( [ 'trackEvent', 'Player', 'Error', e ] );*/ return; } ); window.ssp_player1.on( 'ready', function(e){ $( '#ssp_player_id_1 #sspTotalDuration' ).text( window.ssp_player1.getDuration().toString().toFormattedDuration() ); $( '#ssp_player_id_1 #sspPlayedDuration' ).text( window.ssp_player1.getCurrentTime().toString().toFormattedDuration() ); } ); // On Media Played window.ssp_player1.on( 'play', function(e){ // Track Podcast Specific Play /*_paq.push( [ 'trackEvent', 'Player', 'Play', 'FleetCast Episode 1' ] );*/ // Track Global Play /*_paq.push( [ 'trackEvent', 'Player', 'Play', 'Global Stats' ] );*/ $( '#ssp_player_id_1 #ssp-play-pause .ssp-custom-icon' ).removeClass().addClass( 'ssp-custom-icon ssp-custom-icon-pause_icon' ); $( '#ssp_player_id_1 #sspPlayedDuration' ).text( window.ssp_player1.getCurrentTime().toString().toFormattedDuration() ) sspUpdateDuration1 = setInterval( function(){ $( '#ssp_player_id_1 #sspPlayedDuration' ).text( window.ssp_player1.getCurrentTime().toString().toFormattedDuration() ); }, 100 ); } ); // On Media Paused window.ssp_player1.on( 'pause', function(e){ // Track Podcast Specific Pause /*_paq.push( [ 'trackEvent', 'Player', 'Pause', 'FleetCast Episode 1' ] );*/ // Track Global Pause /*_paq.push( [ 'trackEvent', 'Player', 'Pause', 'Global Stats' ] );*/ $( '#ssp_player_id_1 #ssp-play-pause .ssp-custom-icon' ).removeClass().addClass( 'ssp-custom-icon ssp-custom-icon-play_icon' ); clearInterval( sspUpdateDuration1 ); } ); // On Media Finished window.ssp_player1.on( 'finish', function(e){ $( '#ssp_player_id_1 #ssp-play-pause .ssp-custom-icon' ).removeClass().addClass( 'ssp-custom-icon ssp-custom-icon-play_icon' ); // Track Podcast Specific Finish /*_paq.push( [ 'trackEvent', 'Player', 'Finish', 'FleetCast Episode 1' ] );*/ // Track Global Finish /*_paq.push( [ 'trackEvent', 'Player', 'Finish', 'Global Stats' ] );*/ } ); $('#ssp_player_id_1 #ssp-play-pause').on( 'click', function(e){ window.ssp_player1.playPause(); } ); $('#ssp_player_id_1 #ssp-back-thirty').on( 'click', function(e){ // Track Podcast Specific Back 30 /*_paq.push( [ 'trackEvent', 'Player', 'Back 30 Seconds', 'FleetCast Episode 1' ] );*/ // Track Global Back 30 /*_paq.push( [ 'trackEvent', 'Player', 'Back 30 Seconds', 'Global Stats' ] );*/ window.ssp_player1.skipBackward(); } ); $('#ssp_player_id_1 #ssp_playback_speed1').on( 'click', function(e){ switch( $( e.currentTarget ).parent().find( '[data-ssp-playback-rate]' ).attr( 'data-ssp-playback-rate' ) ){ case "1": $( e.currentTarget ).parent().find( '[data-ssp-playback-rate]' ).attr( 'data-ssp-playback-rate', '1.5' ); $( e.currentTarget ).parent().find( '[data-ssp-playback-rate]' ).text('1.5X' ); window.ssp_player1.setPlaybackRate(1.5); break; case "1.5": $( e.currentTarget ).parent().find( '[data-ssp-playback-rate]' ).attr( 'data-ssp-playback-rate', '2' ); $( e.currentTarget ).parent().find( '[data-ssp-playback-rate]' ).text('2X' ); window.ssp_player1.setPlaybackRate(2); break; case "2": $( e.currentTarget ).parent().find( '[data-ssp-playback-rate]' ).attr( 'data-ssp-playback-rate', '1' ); $( e.currentTarget ).parent().find( '[data-ssp-playback-rate]' ).text('1X' ); window.ssp_player1.setPlaybackRate(1); default: break; } } ); }(jQuery)) } );

References   [ + ]

1. sec_num - (hours * 3600