Hi
Can you tell me how can I extract tags, like artist, album, year...
In the demo basic are:
echo 'Bitrate: ' . @$getid3->info['audio']['bitrate'] . '<br>';
echo 'Playtime: ' . @$getid3->info['playtime_string'] . '<br>';
We can add other like echo 'sample_rate: ' . @$getid3->info['audio']['sample_rate'] . '<br>';
But how we can get artist? (some basic please).
Thanks
Get tags
-
- getID3() v1 developer
- Posts:1477
- Joined:Fri May 04, 2001 4:00 pm
- Are you a spambot?:no
- Location:Northern Ontario, Canada
- Contact:
The other two lines from the end of the basic demo are exactly what you're asking about:
Code: Select all
echo @$ThisFileInfo['comments_html']['artist'][0]; // artist from any/all available tag formats
echo @$ThisFileInfo['tags']['id3v2']['title'][0]; // title from ID3v2
-
- User
- Posts:3
- Joined:Sun Jan 21, 2007 11:29 am
HIJames Heinrich wrote:The other two lines from the end of the basic demo are exactly what you're asking about:Code: Select all
echo @$ThisFileInfo['comments_html']['artist'][0]; // artist from any/all available tag formats echo @$ThisFileInfo['tags']['id3v2']['title'][0]; // title from ID3v2
Thank you. This work fine:
@$getid3->info['tags']['id3v2']['title'][0];
But this, do not work:
@$getid3->Info['comments_html']['artist'][0]
By the way, how can I get "cover art" from tag?
Thanks
-
- getID3() v2 developer
- Posts:445
- Joined:Sun May 04, 2003 2:22 pm
- Location:Holmegaard, Denmark