Пример #1
0
 /**
  * returns the currently playing track path so we can get the node
  * 
  * @author Ross Carlson
  * @version 2/9/05
  * @since 2/9/05
  * @param return Returns the path to the current track
  */
 function getCurrentTrackPath()
 {
     return getCurTrackPath();
 }
Пример #2
0
/**
 * Gets the length of the current track
 * 
 * @author Ross Carlson
 * @version 2/9/05
 * @since 2/9/05
 * @param return returns the amount of time remaining in seconds
 */
function getCurTrackLength()
{
    global $jbArr, $media_dirs;
    // Ok, now we need to get the length of this track by reading it's meta data
    $path = getCurTrackPath();
    $mArr = explode("|", $media_dirs);
    for ($i = 0; $i < count($mArr); $i++) {
        $path = str_replace($mArr[$i] . "/", "", $path);
    }
    $track = new jzMediaTrack($path);
    $meta = $track->getMeta();
    return $meta['length'];
}