Pages: [1]
  Print  
Author Topic: ID3-Tag in SoundGroup is not working...  (Read 243 times)
headkit
Gaia Novice
*
Posts: 9


« on: September 01, 2010, 09:41:56 AM »

hi!

I try to show the ID3-tag "songName" of the track I am playing from my SoundGroup.

from my function

Code:
public function playNextTrack():void
{
theTracklist.stop(); // theTracklist : SoundGroup
songPlaying = theTracklist.playNext();
var id3:ID3Info = songPlaying.id3;
trace("songPlaying: " + songPlaying);
trace("  id3.songName: " + id3.songName); // allways NULL :-(
}
I always get "NULL";

why isn't the trackname showing up?
anyone?

thnx!
Logged
steven
Gaia Author
Administrator
Gaia Evangelist
*****
Posts: 3871


gaiaframework
WWW
« Reply #1 on: September 01, 2010, 01:05:42 PM »

First off, you are assuming this is a SoundGroup issue or a Gaia issue. It is not. You should load your mp3 on your own and see that you get no ID3 data.

The reason is most likely because the ID3 data is a version that is incompatible with Flash. One example of this is anything tagged by iTunes.

Flash only loads outdated ID3 formats. It's bullshit, if you ask me. The workaround is to use Ben Stucki's metaphile classes, which use a combination of URLLoader and ByteArray to read the id3 data from the header bytes of your sound file.

http://github.com/benstucki/metaphile

Another solution is to put the id3 information in your xml. I know that isn't ideal, but you can yell at Adobe for their weak support of ID3.
« Last Edit: September 01, 2010, 01:15:51 PM by steven » Logged

Steven Sacks | Gaia Author
Please support Gaia by donating to the project!  Smiley
headkit
Gaia Novice
*
Posts: 9


« Reply #2 on: September 02, 2010, 12:45:36 AM »

thanx, steven.
by the way: I was not assuming that this is a Gaia issue... ;-)

unfortunately I don't know how to use the metaphile...
« Last Edit: September 02, 2010, 12:57:41 AM by headkit » Logged
Pages: [1]
  Print  
 
Jump to:  

TinyPortal v1.0 beta 4 © Bloc