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

@param {number} songIndex The index of the selected song in the songs json object.
Fast forward in the video by 10 seconds . @param { number } songIndex The index of the selected song in the songs json object .
function fastForward(songIndex) {
    if (songIndex == previousSongIndex) {
        var currentTime = YouTubePlayer.getCurrentTime(); 
        var totalTime = YouTubePlayer.getDuration();
        if (currentTime + 10 <= totalTime) {
            YouTubePlayer.seekTo(currentTime + 10, true);
        } 
        else {
            YouTubePlayer.seekTo(totalTime);
        }
    }
}
function fastForward ( songIndex ) { if ( songIndex == previousSongIndex ) { var currentTime = YouTubePlayer . getCurrentTime ( ) ; var totalTime = YouTubePlayer . getDuration ( ) ; if ( currentTime + 10 <= totalTime ) { YouTubePlayer . seekTo ( currentTime + 10 , true ) ; } else { YouTubePlayer . seekTo ( totalTime ) ; } } }
Fast forward in the video by 10 seconds.
Fast forward in the video by 10 seconds .
// Time in seconds.