64
Working With Media Files
To use the
Stream.play()
method to capture and display the text of ID3 tags, see the
following example:
// Set up the server stream
application.myStream = Stream.get("description");
application.myStream.onId3 = function(info)
{
for (i in info)
{
trace(i + ": " + info[i]);
}
}
if (application.myStream)
{
// Publish the ID3 text tag data of bolero.mp3 to a stream "description".
// Use the id3: prefix in front of the stream name and specify 0 for the
startTime
parameter
application.myStream.play("id3:bolero", 0, -1);
}
Summary of Contents for FLASH MEDIA SERVER 2-DEVELOPING MEDIA
Page 1: ...Developing Media Applications ...
Page 6: ...6 ...
Page 10: ...10 About This Manual ...
Page 36: ...36 Flash Media Server Architecture ...
Page 80: ...80 Debugging and Monitoring Applications ...
Page 106: ...106 Application Development Tips and Tricks ...
Page 114: ...114 ...