Open the Application.xml file in the RootInstall/applications/vod2 folder and add
3
directory entry list:
<Streams>/;${VOD2_DIR}</Streams>
Restart Adobe Flash Media Server.
4
Place recorded media files into the folder you specified in the fms.ini file (in this example,
5
Files\Adobe\Flash Media Server 3\applications\vod2\media
The media files are now accessible from the URL
Note: You do not have to specify the media subdirectory in the URL; the media directory is specified in the path you
set in the fms.ini file.
Disable vod services
❖
Move any vod service folders you want to disable out of the applications folder.
Creating clients for streaming services
Creating client applications
Start with the provided sample client code (RootInstall/samples/applications/live and RootInstall/samples/applica-
tions/vod) and modify it as desired.
Clients for the vod and live services can use any Flash Player features except the following:
•
Recording live streams (
•
Remote shared objects (
Using the FLVPlayback component
You can use the Flash 8 FLVPlayback component and the Flash CS3 FLVPlayback component as clients for the vod
and live services. Set the
contentPath
service, set the
parameter to
isLive
Connecting to a streaming service
The streaming services expect the incoming URI to be in the following format:
rtmp://hostName/serviceName/instanceName/[formatType:]fileOrStreamName
The Flash Media Server domain name.
hostName
Either
serviceName
live
If the client is connecting to the default instance, you can either omit the instance name or use
instanceName
. If the client is connecting to an instance you have created, such as room1, use that name.
_definst_
One of the supported file formats,
formatType
Either a file name (for example, my_video.mp4) or a pathname (for example,
fileOrStreamName
subdir/subdir2/my_video.mp4). If the file is an FLV or MP3 file, you do not need to specify the file format. If the file
is an MP4 file, you must specify the file format, for example,
rtmp://www.examplemediaserver.com/vod/ClassicFilms/mp4:AnOldMovie.mp4
rtmp://flashmediaserver/vod2/filename
NetStream.publish("streamName", "record")
SharedObject.getRemote()
parameter to the URL of the stream and, if you're connecting to the live
.
true
or
.
vod
flv:
.
).
).
).
,
or
. The default format if unspecified is
mp3:
mp4:
ADOBE FLASH MEDIA SERVER
Developer Guide
to the virtual
VOD2_DIR
C:\Program
.
.
flv:
.
14
Need help?
Do you have a question about the 65029121 - Flash Media Streaming Server and is the answer not in the manual?