1 person found this helpful
id3tags is a property of #swa members (Insert -> Media Element -> Shockwave Audio...) and is only available after the swa file has buffered. Here's some info from Buzz Kettles (one of Macromedia's sound engineers on the Director development team):
<quote>use preLoadMember() & wait until state=2... normally I leave my mp3s external & use a dummy swa member to preload the mp3s, suck out the ID3s, then link a 'regular' sound member to the same file & listen & control the sound playback using the standard sound control lingo.To play true mp3 streams though, you must use the swa member for playback ...NOTE: these ID3 tags are available from many mp3 files ...Director will only read the v2.x type ID3 tags - the ones at the front of the file (if you drop an mp3 onto a hex editor you can see them).(1.x tags are attached at the end of the file, which is really really useless, so we decided to not honor these at all)btw - MP3Rage (for mac) can update older tags from the back to the front of files.</quote>
Cool, thanks for the quick response. How are the tags extracted? Would it be a long string consisting of all the metadata, or would it be nice, neat and organized into sub-properties for artist, album, song name,etc. and if so, what are the names of those properties? Can I simply assign the .text property of a text member to the tags?
You need to look at the data returned - it is in the form of a property list. As for property names, that depends on who added the tags and how that was done - I'm not sure there is a "standard" as such.
Once the member has preloaded (state = 2) you can issue/execute:
and look in your message window for the property list (and property names therein)