Analyzes media files. More...
Public Member Functions | |
| __construct () | |
| setFile ($a_file) | |
| Set Full File Path. | |
| getFile () | |
| Get Full File Path. | |
| getPlaytimeString () | |
| Get PlaytimeString. | |
| getPlaytimeSeconds () | |
| Get PlaytimeSeconds. | |
| analyzeFile () | |
| Analyze current file. | |
Data Fields | |
| $file | |
Analyzes media files.
Wrapper for getid3 library.
Definition at line 33 of file class.ilMediaAnalyzer.php.
| ilMediaAnalyzer::__construct | ( | ) |
Definition at line 37 of file class.ilMediaAnalyzer.php.
{
include_once("./Services/MediaObjects/getid3/getid3/getid3.php");
$this->getid3 = new getID3();
}
| ilMediaAnalyzer::analyzeFile | ( | ) |
Analyze current file.
Definition at line 86 of file class.ilMediaAnalyzer.php.
References getFile().
{
$this->file_info = $this->getid3->analyze($this->getFile());
}
Here is the call graph for this function:| ilMediaAnalyzer::getFile | ( | ) |
Get Full File Path.
Definition at line 58 of file class.ilMediaAnalyzer.php.
Referenced by analyzeFile().
{
return $this->file;
}
Here is the caller graph for this function:| ilMediaAnalyzer::getPlaytimeSeconds | ( | ) |
Get PlaytimeSeconds.
Definition at line 78 of file class.ilMediaAnalyzer.php.
{
return $this->file_info["playtime_seconds"];
}
| ilMediaAnalyzer::getPlaytimeString | ( | ) |
Get PlaytimeString.
Definition at line 68 of file class.ilMediaAnalyzer.php.
{
return $this->file_info["playtime_string"];
}
| ilMediaAnalyzer::setFile | ( | $ | a_file | ) |
Set Full File Path.
| string | $a_file Full File Path |
Definition at line 48 of file class.ilMediaAnalyzer.php.
{
$this->file = $a_file;
}
| ilMediaAnalyzer::$file |
Definition at line 35 of file class.ilMediaAnalyzer.php.
1.7.1