<?php
/**
* $Id: handler.audio.php,v 1.14 2004/11/23 20:17:28 openface Exp $
*
* _ _ _ _
* _ __ ___ __| (_)__ _ (_)_ _ __| |_____ _____ _ _
* | ' \/ -_) _` | / _` | | | ' \/ _` / -_) \ / -_) '_|
* |_|_|_\___\__,_|_\__,_| |_|_||_\__,_\___/_\_\___|_|
*
* Standalone Indexer Script for Media Files
* jason hines, <hide@address.com>
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
* General Public License for more details.
*/
/**
* Handler class for audio files. Uses ID3 info.
*
* @version $Revision: 1.14 $
* @package mediaIndexer
* @subpackage handlers
* @author jason hines, <hide@address.com>
*/
class audioHandler extends defaultHandler {
public $iconName = "audio.gif";
public function printMedia(file $file) {
echo "<embed src=\""._MEDIAURL."{$file->path}\" controller=\"true\" autoplay=\"false\" autostart=\"false\" height=\"40\" width=\"250\" loop=\"false\">\n";
}
}
?>