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);
}
Содержание FLASH MEDIA SERVER 2-DEVELOPING MEDIA
Страница 1: ...Developing Media Applications ...
Страница 6: ...6 ...
Страница 10: ...10 About This Manual ...
Страница 36: ...36 Flash Media Server Architecture ...
Страница 80: ...80 Debugging and Monitoring Applications ...
Страница 106: ...106 Application Development Tips and Tricks ...
Страница 114: ...114 ...