public/js/music_playlist.js
/**
 * Fast backward in the video by 10 seconds.
 * 
 * @param {number} songIndex The index of the selected song in the songs json object.
 */
Fast backward in the video by 10 seconds.

@param {number} songIndex The index of the selected song in the songs json object.
Fast backward in the video by 10 seconds . @param { number } songIndex The index of the selected song in the songs json object .
function fastBackward(songIndex) {
    if (songIndex == previousSongIndex) {
        var currentTime = YouTubePlayer.getCurrentTime(); 
        if (currentTime - 10 >= 0) {
            YouTubePlayer.seekTo(currentTime - 10, true);
        }
        else {
            YouTubePlayer.seekTo(0);
        }
    }
}
function fastBackward ( songIndex ) { if ( songIndex == previousSongIndex ) { var currentTime = YouTubePlayer . getCurrentTime ( ) ; if ( currentTime - 10 >= 0 ) { YouTubePlayer . seekTo ( currentTime - 10 , true ) ; } else { YouTubePlayer . seekTo ( 0 ) ; } } }
Fast backward in the video by 10 seconds.
Fast backward in the video by 10 seconds .
// Time in seconds.