function streamTrack() { $AlbumTrackID = $this->f3->get('PARAMS.AlbumTrackID'); $track = new AlbumTrack($this->db); $track->getById($AlbumTrackID); $filePath = $track->FileName; $this->utils->smartReadFile($filePath); }
function getTrackMetadata($id) { $AlbumTrackID = $this->f3->get('PARAMS.AlbumTrackID'); $track = new AlbumTrack($this->db); $track->getById($AlbumTrackID); $filePath = $track->FileName; $getID3 = new getID3(); $tags = $getID3->analyze($filePath); echo "<pre>"; echo print_r($tags, TRUE); echo "</pre>"; }