Chapter 6: Application Development Tips And Tricks; About File Types And Paths - MACROMEDIA FLASH MEDIA SERVER 2-DEVELOPING MEDIA Develop Manual

Developing media applications
Table of Contents

Advertisement

CHAPTER 6
6
Application Development
Tips and Tricks
This chapter points out some useful information about application development that is
specific to Macromedia Flash Media Server. It includes general sections on application design
and coding conventions. Read this chapter after you are familiar with the concepts described
in Chapters 1 and 2.

About file types and paths

When you use methods that record audio, video, or data streams (for example,
), Flash Media Server creates a file—filename.flv—where filename is
NetStream.publish()
the string that was passed to the method that recorded the stream. These files are the recorded
stream and its associated index file. For example, if you issue the command
, a file named me.flv is created.
NetStream.publish("me", "record")
When Flash Media Server generates stream files for an application, it creates a streams
directory with application-instance subdirectories. For example, if the application instance
records a stream named
, the chat.flv file is stored in the following
ChatApp/MondayChat
chat
location: /applications/ChatApp/streams/MondayChat. If you run an instance of ChatApp
called TuesdayChat, its files are stored in /applications/ChatApp/streams/TuesdayChat.
To play back an FLV file that was created by a specialized video application, such as Sorenson
Squeeze or On2, place it in the directory where the Flash Media Server expects to find it—
that is, a subdirectory of a /streams directory as discussed in the preceding paragraph. You can
create subdirectories to further organize FLV files, as long as the subdirectories are in the
correct application-instance subdirectory. For example, within /streams/TuesdayChat, you
could create additional subdirectories /streams/TuesdayChat/morning and streams/
TuesdayChat/afternoon and store FLV files in those subdirectories.
If you want to play back MP3 audio files, see
Chapter 4, "Working With Media Files."
81

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MEDIA SERVER 2-DEVELOPING MEDIA and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash media server 2

Table of Contents