Question
Streaming an FLV file using Media Server
Hi,
I'm trying to get started with FMS2, with a view to being able to stream (not prgressively download) a bunch of FLV videos. I have the developer edition of FMS installed on a server (we are intending to buy the Pro version once this is working) and an FLV file, test.flv
I have created a folder as follows:
C:\Program Files\Macromedia\Flash Media Server 2\applications\VideoTest
In the FMS2 console, I have created an instance of VideoTest called myVideoTest.
Now, this is where I am unsure. I have read about creating a "streams" folder where the FLV file should reside, and I have tried a number of different variations, e.g.
applications\VideoTest\myVideoTest\streams\myVideo.flv
applications\VideoTest\streams\myVideoTest\myVideo.flv
Then, I have created a new Flash document (using Flash Professional 😎 and added a new Video component and tried variations of the following code:
nc = new NetConnection();
nc.connect("rtmp://<server IP>/VideoTest/myVideoTest");
ns = new NetStream(nc);
my_video.attachVideo(ns);
ns.setBufferTime(0);
ns.play("myVideo");
But this doesn't work - just a blank screen and occasionally an error saying it can't open the URL.
I've also tried using an FLVPlayback component and tried setting the content path to rtmp://<server IP>/VideoTest/myVideoTest/myVideo.flv but that fails to find the movie.
What do I need to do to stream FLV videos using FMS2?
Thanks,
Matt
I'm trying to get started with FMS2, with a view to being able to stream (not prgressively download) a bunch of FLV videos. I have the developer edition of FMS installed on a server (we are intending to buy the Pro version once this is working) and an FLV file, test.flv
I have created a folder as follows:
C:\Program Files\Macromedia\Flash Media Server 2\applications\VideoTest
In the FMS2 console, I have created an instance of VideoTest called myVideoTest.
Now, this is where I am unsure. I have read about creating a "streams" folder where the FLV file should reside, and I have tried a number of different variations, e.g.
applications\VideoTest\myVideoTest\streams\myVideo.flv
applications\VideoTest\streams\myVideoTest\myVideo.flv
Then, I have created a new Flash document (using Flash Professional 😎 and added a new Video component and tried variations of the following code:
nc = new NetConnection();
nc.connect("rtmp://<server IP>/VideoTest/myVideoTest");
ns = new NetStream(nc);
my_video.attachVideo(ns);
ns.setBufferTime(0);
ns.play("myVideo");
But this doesn't work - just a blank screen and occasionally an error saying it can't open the URL.
I've also tried using an FLVPlayback component and tried setting the content path to rtmp://<server IP>/VideoTest/myVideoTest/myVideo.flv but that fails to find the movie.
What do I need to do to stream FLV videos using FMS2?
Thanks,
Matt